Exception: NoPassword::UnauthenticatedError
- Defined in:
- lib/nopassword.rb
Overview
Raised when authentication is required but the user is not authenticated. Carries context (email, return_url) that can be used to redirect to auth.
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#return_url ⇒ Object
readonly
Returns the value of attribute return_url.
Instance Method Summary collapse
-
#initialize(email: nil, return_url: nil, message: "Authentication required") ⇒ UnauthenticatedError
constructor
A new instance of UnauthenticatedError.
Constructor Details
#initialize(email: nil, return_url: nil, message: "Authentication required") ⇒ UnauthenticatedError
Returns a new instance of UnauthenticatedError.
25 26 27 28 29 |
# File 'lib/nopassword.rb', line 25 def initialize(email: nil, return_url: nil, message: "Authentication required") @email = email @return_url = return_url super() end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
23 24 25 |
# File 'lib/nopassword.rb', line 23 def email @email end |
#return_url ⇒ Object (readonly)
Returns the value of attribute return_url.
23 24 25 |
# File 'lib/nopassword.rb', line 23 def return_url @return_url end |