Module: AuthlogicConnect::Common::User::InstanceMethods
- Defined in:
- lib/authlogic_connect/common/user.rb
Instance Method Summary collapse
-
#save(perform_validation = true, &block) ⇒ Object
core save method coordinating how to save the user.
- #validate_password_with_oauth? ⇒ Boolean
- #validate_password_with_openid? ⇒ Boolean
Instance Method Details
#save(perform_validation = true, &block) ⇒ Object
core save method coordinating how to save the user
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/authlogic_connect/common/user.rb', line 14 def save(perform_validation = true, &block) status = true if authenticating_with_openid? status = save_with_openid(perform_validation, &block) elsif authenticating_with_oauth? status = save_with_oauth(perform_validation, &block) end if status result = super yield(result) if block_given? result end status end |
#validate_password_with_oauth? ⇒ Boolean
29 30 31 |
# File 'lib/authlogic_connect/common/user.rb', line 29 def validate_password_with_oauth? !using_openid? && super end |
#validate_password_with_openid? ⇒ Boolean
33 34 35 |
# File 'lib/authlogic_connect/common/user.rb', line 33 def validate_password_with_openid? !using_oauth? && super end |