diff options
author | Daniel Vinakovsky <dvinak@gmail.com> | 2016-01-18 11:42:53 -0500 |
---|---|---|
committer | Daniel Vinakovsky <dvinak@gmail.com> | 2016-01-18 11:42:53 -0500 |
commit | 33386b07762fd1aad1b069f3b84ef4e243db53f3 (patch) | |
tree | 5921b8bcdd8e70449232fc19e8d97bfd8061994b | |
parent | 9a7911eb0fdccfc98fcec60010f379e3a4b34ced (diff) | |
download | pfsense-33386b07762fd1aad1b069f3b84ef4e243db53f3.zip pfsense-33386b07762fd1aad1b069f3b84ef4e243db53f3.tar.gz |
more style fixes. unset old fields
-rwxr-xr-x | src/etc/inc/auth.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 56bcbc4..5b705a8 100755 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -608,9 +608,9 @@ function local_user_del($user) { function local_user_set_password(&$user, $password) { - $user['password'] = "REMOVED"; - $user['md5-hash'] = "REMOVED"; - $user['bcrypt-hash'] = password_hash($password,PASSWORD_BCRYPT); + unset($user['password']); + unset($user['md5-hash']); + $user['bcrypt-hash'] = password_hash($password, PASSWORD_BCRYPT); // Maintain compatibility with FreeBSD // https://reviews.freebsd.org/D2742 @@ -620,7 +620,6 @@ function local_user_set_password(&$user, $password) { $user['bcrypt-hash'][2] = "b"; } - // Converts ascii to unicode. $astr = (string) $password; $ustr = ''; |