sec: Hash password even if user exists :'(

This commit is contained in:
nikolark committed 2018-09-16 18:57:59 +02:00
1 parent 2430d56362
commit 786554939c
1 file changed
+1 -1
+1 -1
View File
@@ -74,7 +74,7 @@ class GaltinnAuth {
/* Update data */
$userdata['ID'] = $existing_user->ID;
$updated_user_id = wp_insert_user($userdata);
$updated_user_id = wp_update_user($userdata);
if (is_wp_error($updated_user_id)) {
error_log("[error] " . $updated_user_id->get_error_message() . "(username: $username)");
}