On Apr 25, 2014, at 11:19 PM, Ankur Kumar wrote:

> 
> Hi,
> 
> I want to have different email confirmation behaviour for same model 
> depending on certain conditions. 
> 
> Case 1: User signs up on his own using an email and password, gets Mail 
> Template 1 (the mail only asks for email confirmation, he has already set the 
> password)
> 
> Case 2: A new user is added in model explicitly by another registered user. 
> The new user gets Mail Template 2, which asks him to reset the password 
> (reset should by default confirm his account as well)
> 
> Is this possible to achieve?
> 

Have you looked at Devise Invitable yet? That lets current members invite other 
members, but does not set their password, so they have to choose one before 
they are fully brought into the fold.

Walter


> I was going through Devise page where we can override confirmation process to 
> let user set the password and auto-confirm the account during this process. 
> But I think this will happen for all users added in model. I want to 
> customize this. 
> 
> Thanks.
> --
> Regards,
> Ankur 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/CALSL1eMYwzcX2JAbBFSJ9YF4_5vWaqj_7kg02ouffCfH9gftkw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/DF8AF201-E141-49FB-92EC-CE7ECC1FAC8A%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to