knock icon indicating copy to clipboard operation
knock copied to clipboard

Devise support

Open waleedarshad opened this issue 7 years ago • 7 comments

waleedarshad avatar May 13 '17 07:05 waleedarshad

There isn't really any point on using Devise if you are going to use the Knock gem.

aalvrz avatar May 19 '17 02:05 aalvrz

Who is going to handle all logic regarding user confirmation, resent password token, forget password, change password.... these all logic we need to write ourself which does not seems obvious solution.

Would you guide me?

waleedarshad avatar May 19 '17 04:05 waleedarshad

there are plenty of tutorials out there which focus on confirmation / password-reset / etc ... just google it

zangab avatar Jun 10 '17 13:06 zangab

I agree it would be way better if there is devise support for this gem. Why reinvent the wheel? thats the whole purpose of using gems. So I don't think making the confirmation/reset/etc manually is a valid answer for this request. It is not necessary but it would be a nice feature to have.

vikonava avatar Jun 20 '17 21:06 vikonava

It doesn't look like it's something the contributors are going to do (see: https://github.com/nsarno/knock/issues/140#issuecomment-279282913). If you're looking for a guide, Michael Hartl's Rails Tutorial goes over this stuff pretty extensively (passwords, confirmations, bcrypt, etc). After you get the hang of it, it's pretty painless to set up.

durfee avatar Jun 21 '17 14:06 durfee

I have an existing rails app. Now the time has come to add JSON API features to this app.

I am currently using devise.

Do you have any ideas on how I can manage this using rails 5?

advise much appreciated.

chrs

benkoshy avatar Feb 06 '18 04:02 benkoshy

@BKSpurgeon Go with simple_token_authentication i recently used that for my existing rails app to create api for ionic project.

AustineA avatar Jun 15 '18 15:06 AustineA