开发者

How do you add a beta code authentication to a rails site?

开发者 https://www.devze.com 2023-03-19 16:17 出处:网络
I have two different pages, one is to enter the beta code, and the other is to actually sign up. Before gaining access to the signup page one must first enter a correct beta key.

I have two different pages, one is to enter the beta code, and the other is to actually sign up. Before gaining access to the signup page one must first enter a correct beta key.

How can I check the input, when the user clicks the submit button, with a list of 开发者_如何学编程beta keys and then redirect to the sign up page. What I actually want to do is call a helper when the user clicks submit that is able to take the info from the beta code textbox.


What you're looking for is called whitelisting. See Whitelisting with devise for examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号