Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Added secret generation to new user creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari committed Mar 18, 2011
1 parent 73598d4 commit 75b5772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/login/controllers/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ function Join ( ) {
$userAuth->Set ( 'Pass', $newpass);
$userAuth->Set ( 'Verification', 0);
$userAuth->Set ( 'Standing', 0);
$userAuth->Set ( 'Secret', md5(rand()) ); // 32-bit user secret.

if ( !$userAuth->Save() ) {
$session->Set ( "Message", "An error occurred" );
Expand Down

0 comments on commit 75b5772

Please sign in to comment.