This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -93,25 +93,26 @@ function make_seed_recoverpass()
93
93
94
94
$ pass = "" ;
95
95
$ max = strlen ($ keychars ) - 1 ;
96
- for ($ i = 0 ;$ i <= $ length ;$ i ++)
96
+ for ($ i = 0 ; $ i <= $ length ; $ i ++)
97
97
{
98
98
$ pass .= substr ($ keychars , rand (0 , $ max ), 1 );
99
99
}
100
100
$ encrypted = md5 ($ pass );
101
101
102
102
$ passwordPrefix = Zend_Registry::get ('configGlobal ' )->password ->prefix ;
103
+ $ salted = $ pass ;
103
104
if (isset ($ passwordPrefix ) && !empty ($ passwordPrefix ))
104
105
{
105
- $ pass = $ passwordPrefix .$ pass ;
106
+ $ salted = $ passwordPrefix .$ pass ;
106
107
}
107
108
108
- $ user ->setPassword (md5 ($ pass ));
109
+ $ user ->setPassword (md5 ($ salted ));
109
110
110
111
// Send the email
111
112
$ url = $ this ->getServerURL ().$ this ->view ->webroot ;
112
113
113
114
$ text = "Hello,<br><br> You have asked for a new password for MIDAS.<br> " ;
114
- $ text .= "Please go to this page to login into MIDAS and change your password:<br> " ;
115
+ $ text .= "Please go to this page to log in to MIDAS and change your password:<br> " ;
115
116
$ text .= "<a href= \"" .$ url ."\"> " .$ url ."</a><br> " ;
116
117
$ text .= "Your new password is: " .$ pass ."<br> " ;
117
118
$ text .= "<br><br>Generated by MIDAS " ;
You can’t perform that action at this time.
0 commit comments