Skip to content

Commit

Permalink
Fix lonnieezell#324: field type is integer
Browse files Browse the repository at this point in the history
As PostgreSQL is strongly typed and doesn't have an implicit cast between
booleans and integers, we strictly use integers for the force_pass_reset
field.
  • Loading branch information
xlii-chl committed Feb 25, 2022
1 parent 0cd1955 commit 2fbbf9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public function attemptReset()
$user->reset_hash = null;
$user->reset_at = date('Y-m-d H:i:s');
$user->reset_expires = null;
$user->force_pass_reset = false;
$user->force_pass_reset = 0;
$users->save($user);

return redirect()->route('login')->with('message', lang('Auth.resetSuccess'));
Expand Down

0 comments on commit 2fbbf9b

Please sign in to comment.