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
how_to:change_admin_password_salted [2012/10/31 17:20]
shovenose [Purpose]
how_to:change_admin_password_salted [2016/07/01 13:19] (current)
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 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.1351704050.txt.gz · Last modified: 2013/04/19 14:56 (external edit)