ruby on rails - Allow registered user to access their account without doing login -
i sending link registered user. when click link want them redirect access
their account without authentication(login). when access site
should login. using digest/sha
password encryption.any 1 have idea?
you can try following..
you have send link mail account.
so user can access account in 5 minutes.
after 5 minute link not worked. have pass unique key link. like.
www.google.com?id=12d123e33ert
you have generate unique link each , every request user. , store 1 database table. email ,timestamp. if user dont click link within 5 minutes.
you have clear database timestamp bigger 5 minutes using crone job functionality of server.
if eamil , link key matched our store key user can access website. otherwise not.
you got point?
Comments
Post a Comment