10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/booth/sessions/create_and_login.rb', line 10
def call
if request.scope != credential.scope.to_sym
debug { "Request has scope #{request.scope.inspect} but Credential has #{credential.scope.to_sym.inspect}" }
raise 'Not performing login because something in your setup is wrong.'
end
request.authentication
.login(session: create_session)
login_storage.reset
registration_storage.reset
Tron.success :session_created_and_logged_in, return_path: request.return_path
end
|