Generate temporary URL to reset password

Probably the easiest way is going to be to modify your users table to add 2 extra columns, OR if you don’t want to modify the existing table you could add a new dependent table called “UserPasswordReset” or something like that. The columns are like this: PasswordResetToken UNIQUEIDENTIFIER, PasswordResetExpiration DATETIME If you go with the … Read more

Clean git repo on Heroku

Install the Heroku Repo plugin and use it to reset the remote git repo. First delete the git repo on the server: > cd /my-project/ > heroku plugins:install heroku-repo > heroku repo:reset Then re-initialise your local git repo by deleting and recreating it: > cd /my-project/ > rm -rf .git > git init > heroku … Read more

tech