Skip to content

Commit faa437b

Browse files
authored
Use the current_password not password field when verifying passwords.
1 parent 93dc52b commit faa437b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Base/AccountController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function update(Request $request)
8282

8383
if (
8484
in_array($request->input('do_action'), ['email', 'password'])
85-
&& ! password_verify($request->input('password'), $request->user()->password)
85+
&& ! password_verify($request->input('current_password'), $request->user()->password)
8686
) {
8787
Alert::danger(trans('base.account.invalid_pass'))->flash();
8888

0 commit comments

Comments
 (0)