Bug Fix for Rails Prelaunch Signup App
Closed issue #7 for the Rails Prelaunch Signup App. When visitors requested an invitation, a new account was created, and a password was created. Turns out I’d overlooked some code in the application.js file that was creating a password with the value “undefined.” I’ve fixed the bug by cleaning up the Javascript. Now it works as it should. When the administrator invites the user to confirm his or her account, the user will be prompted to choose a password.
If you’ve been running the app in production and have collected real visitor invitation requests, you’ll need to perform a bulk update to your database, setting the encrypted password field to null for all users except the administrator. If you don’t update the database, any visitor you invite will not be abel to set a password for their account.