Skip to content

Commit 7fd22cc

Browse files
author
GodMod
committed
New password format
1 parent 0943f6c commit 7fd22cc

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

guildrequest_plugin_class.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
+--------------------------------------------------------------------------*/
2929
class guildrequest extends plugin_generic {
3030

31-
public $version = '1.1.10';
31+
public $version = '1.1.11';
3232
public $build = '';
3333
public $copyright = 'GodMod';
3434

@@ -120,11 +120,10 @@ public function pre_install(){
120120
'name' => 'GuildRequest',
121121
);
122122

123-
$salt = $this->user->generate_salt();
124123
$strPassword = random_string(40);
125-
$strPwdHash = $this->user->encrypt_password($strPassword, $salt);
124+
$strPwdHash = $this->user->encrypt_password($strPassword);
126125

127-
$user_id = $this->pdh->put('user', 'insert_user_bridge', array($arrUserdata['name'], $strPwdHash.':'.$salt, $arrUserdata['email'], false));
126+
$user_id = $this->pdh->put('user', 'insert_user_bridge', array($arrUserdata['name'], $strPwdHash, $arrUserdata['email'], false));
128127
if ($user_id){
129128
$this->pdh->put('user', 'add_special_user', array($user_id));
130129
}

page_objects/viewrequest_pageobject.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ public function status_change(){
117117

118118
if($this->pdh->get('user', 'check_username', array($newUsername)) !== 'false' && $this->pdh->get('user', 'check_email', array($row['email'])) !== 'false'){
119119

120-
$salt = $this->user->generate_salt();
121-
$strPwdHash = $this->user->encrypt_password(random_string(40), $salt);
120+
$strPwdHash = $this->user->encrypt_password(random_string(40));
122121
$newUserId = $this->pdh->put('user', 'insert_user_bridge', array($newUsername, $strPwdHash, register('encrypt')->decrypt($row['email'])));
123122

124123
// Email them their new password

0 commit comments

Comments
 (0)