mirror of
https://github.com/scratchfoundation/swiki-confirmaccount.git
synced 2024-12-04 12:51:01 -05:00
made temporary passwords more secure
This commit is contained in:
parent
baf16ad68e
commit
8b260c62c1
2 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ class AccountConfirmSubmission {
|
|||
$dbw->begin();
|
||||
|
||||
# Make a random password
|
||||
$p = md5(strtolower($this->userName));
|
||||
$p = md5(strtolower($accReq->getNotes()));
|
||||
|
||||
# Insert the new user into the DB...
|
||||
$tokenExpires = $accReq->getEmailTokenExpires();
|
||||
|
|
|
@ -326,7 +326,7 @@ class RequestAccountPage extends SpecialPage {
|
|||
$out = $this->getOutput();
|
||||
$out->setPagetitle( $this->msg( "requestaccount" )->escaped() );
|
||||
$out->addWikiMsg( 'requestaccount-sent' );
|
||||
$out->addHTML(' If your request is accepted, your password will be <b>' . md5(strtolower(Title::newFromText($this->mUsername))) . '</b>.');
|
||||
$out->addHTML(' If your request is accepted, your password will be <b>' . md5(strtolower($this->mNotes)) . '</b>.');
|
||||
$out->returnToMain();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue