lib/rodauth/features/select_account.rb in rodauth-select-account-0.0.2 vs lib/rodauth/features/select_account.rb in rodauth-select-account-0.0.3
- old
+ new
@@ -227,11 +227,11 @@
end
r.post do
# This is a copy of the login routine
skip_error_flash = false
- view = :add_account
+ view = :add_account_view
catch_error do
# this instruction will load the new account
unless account_from_login(param(login_param))
throw_error_status(no_matching_login_error_status, login_param, no_matching_login_message)
@@ -266,10 +266,10 @@
set_notice_flash add_account_notice_flash
redirect(remove_session_value(add_account_redirect_session_key) || add_account_redirect)
end
set_error_flash add_account_error_flash unless skip_error_flash
- send("#{view}_view")
+ send(view)
end
end
end
end