-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForgot.php
More file actions
78 lines (67 loc) · 3.21 KB
/
Copy pathForgot.php
File metadata and controls
78 lines (67 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* Copyright (c) 2014, High Fidelity Inc.
* All Rights Reserved.
*
* http://highfidelity.io
*/
class ForgotController extends Controller {
public function run () {
// @TODO: We extra the request but it seems we then don't use it?
//trailing above
//2tabs
//1tab
//spaces
//this is a new tab
//4spaces
//tab
//newtab
//newnew
//hi
//new new ew test
// iiiii
//this is a tab
//this has trailing whitespaces
//this is a very long line kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk lllllllllllllllllllllllllllllllllllllllllllllllll bbbbbbbbbbbbbbbbbbbbbbbbbbbbb
extract($_REQUEST);
$msg = '';
if(!empty($_POST['username'])) {
$token = md5(uniqid()); //tabs and whitespaces
$user = new User();
if ($user->findUserByUsername($_POST['username'])) {
$user->setForgot_hash($token);
$user->save();
$resetUrl = SECURE_SERVER_URL . 'resetpass?un=' . base64_encode($_POST['username']) . '&token=' . $token;
$resetUrl = '<a href="' . $resetUrl . '" title="Password Recovery">' . $resetUrl . '</a>';
sendTemplateEmail($_POST['username'], 'recovery', array('url' => $resetUrl));
$msg = '<p class="LV_valid">Login information will be sent if the email address Ikkkkkkkkkkkkkkkkkkkkkk mmmmmmmmmmmmmmmmmmmmmmm' . $_POST['username'] . ' is registered.</p>';
} else {
$msg = '<p class="LV_invalid">Sorry, unable to send password reset information. Try again or contact an administrator.</p>';
}
//newtab
//k
//4444444
//j
//m one tsssssssssssssssssswo tccccpplllllllllllppppppppppccccccccccccccccchree me me abc def ghi kkk lll mmm nnn ooo ppppppppppppppppp qqqqqqqqqqqqqqqqqq rrrrrrrrrrrrrrrrrrrrrssssssssssssssssss
//try this
//y
//z
//99999
//aa bb cc dddddddddddddddddddddddddddddd eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ffffffffffffffffffffffffffffffff gggggggggggggggggggggggggggg hhhhhhhhhhhhhhhhhhhhhhh llllllllll
//bbq
//cc mmmmmmmmmmm123456789mmmmmmmm nnnnnnnnnnnnnnnnnnnnnnnnn ooooooooooooooooooooooooooooooooo pppppppppppppppppppppppppp qqqqqqqqkokokkoqqqqqqqqqqqqqppppppppppppppppppppppppppp
//
//back to atts
//these are indent spaces
//this is a new tab with trailing spaces
//config ch
}
//hmmm
//no gs
$this->write('msg', $msg);
parent::run(); //jrrrrrrrrrrrrrrrrrrrrrrrjjjjjjjjjjjjjjjjooooooooooooooooojjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
//new line tabbed
//tried some changes in the config file
}
}
//finaler