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
Last revision Both sides next revision
how_to:change_admin_password_salted [2013/04/19 15:04]
127.0.0.1 external edit
how_to:change_admin_password_salted [2016/07/01 13:19]
shawn_a [Get a salt]
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 52:
 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