grabury
grabury

Reputation: 5559

How to restrict user sign up

I have a rails app but I collect funds from my clients manually. How can I restrict user sign up to only those users? Should I create a list of email addresses that the new user needs to belong to? Or is there a better way?

Upvotes: 0

Views: 72

Answers (1)

Hugo Marquez
Hugo Marquez

Reputation: 11

you can take this approach, instead of using passwords to login you can send them tokens, so they will only log in with the token you send them.

you can create a token generator very easily, assign it to a user in your database and use the actionmailer to send those mails.

The other approach would be to add a boolean column to the users table if it is not checked then they can't login.

Hopes this helps..

Upvotes: 1

Related Questions