Skip to content

Commit 8dd5753

Browse files
committed
Use the class Util to encrypt user's information
1 parent 2534286 commit 8dd5753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JSONDB/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Configuration
5454
*/
5555
public function addUser($server, $username, $password)
5656
{
57-
$this->_writeConfig('users', array_merge($this->getConfig('users'), array($server => array('username' => sha1(md5($username)), 'password' => sha1(md5($password))))));
57+
$this->_writeConfig('users', array_merge($this->getConfig('users'), array($server => array('username' => Util::crypt($username), 'password' => Util::crypt($password)))));
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)