Merge pull request 'Expire inactive sessions, optionally allow to stay signed in' (#82) from feature/8-session_timeouts into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #82
Reviewed-by: galfert <garret.alfert@gmail.com>
This commit was merged in pull request #82.
This commit is contained in:
2023-03-31 07:58:24 +00:00
10 changed files with 66 additions and 29 deletions

View File

@@ -38,7 +38,9 @@ class User < ApplicationRecord
devise :ldap_authenticatable,
:confirmable,
:recoverable,
:validatable
:validatable,
:timeoutable,
:rememberable
def ldap_before_save
self.email = Devise::LDAP::Adapter.get_ldap_param(self.cn, "mail").first