Skip to content

Commit

Permalink
add method for marking password confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 18, 2020
1 parent 9acf059 commit fb3f45a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Session/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,16 @@ public function setPreviousUrl($url)
$this->put('_previous.url', $url);
}

/**
* Specify that the user has confirmed their password.
*
* @return void
*/
public function passwordConfirmed()
{
$this->put('auth.password_confirmed_at', time());
}

/**
* Get the underlying session handler implementation.
*
Expand Down

0 comments on commit fb3f45a

Please sign in to comment.