-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Utilize hook (Refreshable) for setting initial credentials_refreshed_at value; - Switch to warden session scope for simplicity; - Move requiring of "hooks/refreshable" to main devise-otp.rb file; * - Use warden.session for refresh_return_url too - Remove "scoped" verbiage from session properties (since scope is now applied via warden); - Remove comment regarding cookie scope for otp_refresh_property (now applied via warden); * add CHANGELOG entry;
- Loading branch information
Showing
5 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# After each sign in, update credentials refreshed at time | ||
Warden::Manager.after_set_user except: :fetch do |record, warden, options| | ||
warden.session[:credentials_refreshed_at] = (Time.now + record.class.otp_credentials_refresh) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters