Meteor login without password -
is there way hijack accounts
system allow logging in user server without need password?
i have 'fast user switching' concept requires user login usual each day, system multi-user , want allow them switch use of 4 digit keycode. need way change logged in user code rather needing full username/password combination.
yes, it's quite easy actually.
just create collection stores pin code/userid combinations , create new loginhandler (accounts.registerloginhandler)
in loginhandler fetch userid provided pin code , like:
https://gist.github.com/anonymous/86245712c1dee5d2bdbd (untested, idea)
you save pincode field in users collection, that's of course
Comments
Post a Comment