1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 13:44:12 +02:00

[ticket/8713] Revert changes to ucp_profile, ucp_register and acp_users.

Currently only auth_db is supported there and the password needs to be trimmed
for compatibility because user_password stores

  phpbb_hash(htmlspecialchars(trim($password)))

Setting passwords for other auth modules is currently not supported.

Once setting/changing passwords is supported by auth plugins, the
untrimmed_variable() should be used here and the result should be passed
to the auth plugin.

PHPBB3-8713
This commit is contained in:
Andreas Fischer
2012-09-08 15:02:06 +02:00
parent 1e05fd4c62
commit 73a75fc3d3
3 changed files with 7 additions and 7 deletions

View File

@@ -46,9 +46,9 @@ class ucp_profile
$data = array(
'username' => utf8_normalize_nfc(request_var('username', $user->data['username'], true)),
'email' => strtolower(request_var('email', $user->data['user_email'])),
'new_password' => $request->untrimmed_variable('new_password', '', true),
'cur_password' => $request->untrimmed_variable('cur_password', '', true),
'password_confirm' => $request->untrimmed_variable('password_confirm', '', true),
'new_password' => $request->variable('new_password', '', true),
'cur_password' => $request->variable('cur_password', '', true),
'password_confirm' => $request->variable('password_confirm', '', true),
);
add_form_key('ucp_reg_details');