mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Make user_newpasswd lenght configurable (#126)
This commit is contained in:
parent
0b35ecc152
commit
43539b2a3d
@ -312,6 +312,7 @@ define('LOGIN_KEY_LENGTH', 12);
|
|||||||
define('USERNAME_MIN_LENGTH', 3);
|
define('USERNAME_MIN_LENGTH', 3);
|
||||||
define('USERNAME_MAX_LENGTH', 25);
|
define('USERNAME_MAX_LENGTH', 25);
|
||||||
define('USEREMAIL_MAX_LENGTH', 40);
|
define('USEREMAIL_MAX_LENGTH', 40);
|
||||||
|
define('NEWPASSWD_LENGTH', 8);
|
||||||
|
|
||||||
define('PAGE_HEADER', INC_DIR .'page_header.php');
|
define('PAGE_HEADER', INC_DIR .'page_header.php');
|
||||||
define('PAGE_FOOTER', INC_DIR .'page_footer.php');
|
define('PAGE_FOOTER', INC_DIR .'page_footer.php');
|
||||||
|
@ -30,7 +30,7 @@ if (isset($_POST['submit']))
|
|||||||
$user_id = $row['user_id'];
|
$user_id = $row['user_id'];
|
||||||
|
|
||||||
$user_actkey = make_rand_str(ACTKEY_LENGHT);
|
$user_actkey = make_rand_str(ACTKEY_LENGHT);
|
||||||
$user_password = make_rand_str(8);
|
$user_password = make_rand_str(NEWPASSWD_LENGTH);
|
||||||
|
|
||||||
$sql = "UPDATE " . BB_USERS . "
|
$sql = "UPDATE " . BB_USERS . "
|
||||||
SET user_newpasswd = '$user_password', user_actkey = '$user_actkey'
|
SET user_newpasswd = '$user_password', user_actkey = '$user_actkey'
|
||||||
|
Loading…
Reference in New Issue
Block a user