質問

I'm creating a Rails 3.2 app at the moment and I'm trying to make it so that it's as simple as possible for a user to log in, preferably only using a 4 digit-code.

I was thinking about creating a subdomain for each user, and then just limiting the password to four digits and make it numerical only (which I guess would work).

However, I don't really need such a complicated set up, all the users will see roughly the same thing, and there's no private information between users, it's simply to save time logging in, so they don't need to bother with a username.

Does anyone have any suggestion about how I could do this and then implement it?

Any help is greatly appreciated.

役に立ちましたか?

解決

Why not just use there email address on login? I wouldn't not limit how complex the password is. This should be very easy with devise.

Another point that is should be made is that a 4 digit number is not secure at all. There is only 10,000 passwords to choose from. Very easy to crack with the proper software.

The solution: Just use email and password. Simple to do and a Internet standard.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top