User Tools

Site Tools


how_to:change_admin_password_salted

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
how_to:change_admin_password_salted [2012/10/31 15:54]
127.0.0.1 external edit
how_to:change_admin_password_salted [2016/07/01 13:18]
shawn_a [Get a salt]
Line 5: Line 5:
  
  
-This entry is because a few people, judging from some requests in the support forum, ​have had trouble converting their GetSimple installation from unsalted to salted logins. ​ This entry will hopefully form a base topic to which we can point future requests.+This entry is because a few people ​seem to have had some trouble converting their GetSimple installation from unsalted to salted logins. ​ This entry will hopefully form a base topic to which we can point future requests.
  
 Since you are switching from unsalted to salted, a process that assumes you are a bit knowledgeable about admininistration,​ I'm going to assume you know what FTP is, what a shell is, and what ''​[[config:​gsconfig|gsconfig.php]]''​ does. Since you are switching from unsalted to salted, a process that assumes you are a bit knowledgeable about admininistration,​ I'm going to assume you know what FTP is, what a shell is, and what ''​[[config:​gsconfig|gsconfig.php]]''​ does.
Line 45: Line 45:
  
 You can get a salt generated for you from GetSimple'​s API [[http://​get-simple.info/​api/​security/​|here]],​ which is probably the easiest way.  Refresh the page a few times until you get a salt that looks completely random. ​ Notice that the page shows //two// salts, one for logins and one for your custom salt for cookies and uploads. ​ Here is an example output:​\\ ​ You can get a salt generated for you from GetSimple'​s API [[http://​get-simple.info/​api/​security/​|here]],​ which is probably the easiest way.  Refresh the page a few times until you get a salt that looks completely random. ​ Notice that the page shows //two// salts, one for logins and one for your custom salt for cookies and uploads. ​ Here is an example output:​\\ ​
-<​html><​code>​define('​GSLOGINSALT',​ '​w7M%_G%CZrBjxMfdBNHhqfKZ7O7%lc_0fJ5k-CE4TjJBZxUayc^ODiv'​);​<br />define('​GSUSECUSTOMSALT',​ '​-N0iquC47bueHs9YAyMBF6w=ny1WiTJnFcckR K~iW^s9IMy1cD^nUS'​);​</​code></​html>​+''​define('​GSLOGINSALT',​ '​w7M%_G%CZrBjxMfdBNHhqfKZ7O7%lc_0fJ5k-CE4TjJBZxUayc^ODiv'​);​\\ 
 +define('​GSUSECUSTOMSALT',​ '​-N0iquC47bueHs9YAyMBF6w=ny1WiTJnFcckR K~iW^s9IMy1cD^nUS'​);​ 
 +''​
  
 ==== Add the lines ==== ==== Add the lines ====
Line 51: Line 53:
 Add (or uncomment the existing lines) to gsconfig.php:​\\ ​ Add (or uncomment the existing lines) to gsconfig.php:​\\ ​
 ''​define('​GSLOGINSALT',​ ' ....  your salt ... '​);''​\\ ​ ''​define('​GSLOGINSALT',​ ' ....  your salt ... '​);''​\\ ​
-and if you want \\  
-''​define('​GSUSECUSTOMSALT',​ ' ... your other salt ... '​);''​\\ ​ 
  
 You have now added a salt that GetSimple will use when generating the login password token. You have now added a salt that GetSimple will use when generating the login password token.
  
 Upload gsconfig.php to your installation. Upload gsconfig.php to your installation.
 +
 +If you want a custom cookie salt, you can change the following, DO NOT CHANGE THIS AT THE SAME TIME AS GSLOGINSALT \\ 
 +''​define('​GSUSECUSTOMSALT',​ ' ... your other salt ... '​);''​\\ ​
  
 ==== Step Three: Change admin password ==== ==== Step Three: Change admin password ====
how_to/change_admin_password_salted.txt · Last modified: 2016/07/01 13:19 by shawn_a