ASP.NET Core Identity invalid token on confirmation email

This answer https://stackoverflow.com/a/31297879/2948212 pointed me in the right direction. But as I said it was for a different version and now it is slightly different solution. The answer is still the same: encode the token in base 64 url, and then decode it in base 64 url. That way both Angular and ASP.NET Core will … Read more

I forgot the password I entered during PostgreSQL installation

Find the file pg_hba.conf. It may be located, for example, in /etc/postgresql-9.1/pg_hba.conf. cd /etc/postgresql-9.1/ Back it up cp pg_hba.conf pg_hba.conf-backup Place the following line (as either the first uncommented line, or as the only one): For all occurrence of below (local and host) , except replication section if you don’t have any it has to … Read more

Extract TortoiseSVN saved password

Short answer: You can use TortoiseSVN Password Decrypter to easily display your cached credentials, including passwords. Long answer: Here’s how the tool works. The credentials are saved in subdirectories of %APPDATA%\Subversion\auth\. Listed from this previous answer they are: svn.simple contains credentials for basic authentication (username/password) svn.ssl.server contains SSL server certificates svn.username contains credentials for username-only … Read more

Best way for a ‘forgot password’ implementation? [closed]

Update: revised in May 2013 for a better approach The user enters his username and hits “forgot password”. I also recommend the option of entering the email address instead of the username, because usernames are sometimes forgotten too. The system has a table password_change_requests with the columns ID, Time and UserID. When the new user … Read more

I forgot the password I entered during postgres installation

find the file pg_hba.conf – it may be located, for example in /etc/postgresql-9.1/pg_hba.conf. cd /etc/postgresql-9.1/ Back it up cp pg_hba.conf pg_hba.conf-backup place the following line (as either the first un-commented line, or as the only one): For all occurrence of below (local and host) , except replication section if you don’t have any it has … Read more

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

I once had this problem and solved it by installing mysql-server, so make sure that you have installed the mysql-server, not the mysql-client or something else. That error means the file /var/run/mysqld/mysqld.sock doesn’t exists, if you didn’t install mysql-server, then the file would not exist. So in that case, install it with sudo apt-get install … Read more

tech