You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Hi, sorry for bad English. (in this app rails-authlogic-rpx-sample - http://rails-authlogic-rpx-sample.heroku.com/)
Is there best way to validate passwords? For now if you will log through rpx (not standart registration) and go to profile page and change for example password on 1 letter and does't changhe password_confirmation then validation of password skips. For now i've made workaround
def validate_password_not_rpx?
!session_class.controller.params[:user][:password].blank? or !session_class.controller.params[:user][:password_confirmation].blank?
end
i think there is the best way?
The text was updated successfully, but these errors were encountered:
def validate_password_not_rpx?
#super
begin
ps1 = session_class.controller.params[:user][:password]
rescue
ps1 = ""
end
begin
ps2 = session_class.controller.params[:user][:password_confirmation]
rescue
ps2 = ""
end
if (new_record? || (ps1.any? || ps2.any?)) then
return true
else
return false
end
end
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, sorry for bad English. (in this app rails-authlogic-rpx-sample - http://rails-authlogic-rpx-sample.heroku.com/)
Is there best way to validate passwords? For now if you will log through rpx (not standart registration) and go to profile page and change for example password on 1 letter and does't changhe password_confirmation then validation of password skips. For now i've made workaround
i think there is the best way?
The text was updated successfully, but these errors were encountered: