How to manually confirm created users?

21 views
Skip to first unread message

lui...@gmail.com

unread,
Feb 18, 2020, 6:58:53 AM2/18/20
to Fat Free CRM Developers
Hi,

I have created some users via FF CRM web interface but none can signin due to unconfirmed account error shows up.

Is there any way to manually confirm them using $ rails console or something else ?

Regards,

Luilver

ferri...@gmail.com

unread,
Aug 2, 2023, 8:59:43 AM8/2/23
to Fat Free CRM Developers
Hey Luilver

I realise this is an old question but I'm guessing it might be useful to someone going forward.

You should be able to manually confirm users from the Rails console. 

For example, given an email 'hea...@example.com', log in via `rails console` and run something like the following:

User.find_by(email: 'hea...@example.com').update(confirmed_at: DateTime.now)

HTH
Reply all
Reply to author
Forward
0 new messages