I am working on a mini project and i dont know how to skip email confirmation for users who uses devise_rpx_connectable_to sign in, Every time i try to sign in using this services it sends email confirmation to those users.
Asked
Active
Viewed 316 times
1 Answers
1
you can always override this method in User class:
def confirmation_required?
!confirmed?
end
for example you can check there if rpx_identifier.blank?
try this code:
def confirmation_required?
!confirmed? and rpx_identifier.blank?
end

Ireneusz Skrobis
- 1,533
- 1
- 11
- 12
-
do you mean something like this ` def confirmation_required? !confirmed? if rpx_identifier.blank? end` – Uchenna Sep 21 '11 at 15:14
-
i get the error when signing up a new user without the devise rpx `Connection refused - connect(2)` – Uchenna Sep 21 '11 at 15:23
-
users signing in without rpx should be sent a confirmation – Uchenna Sep 21 '11 at 15:25
-
your new error indicates that your email can not go from your machine. Please look here: http://stackoverflow.com/questions/5223858/rails-2-3-9-and-sendgrid-connection-refused-connect2-on-localhost – Ireneusz Skrobis Sep 21 '11 at 15:28
-
super :) have a nice day Uchenna – Ireneusz Skrobis Sep 21 '11 at 15:33