Password salt - where do I put it?

Password salt - where do I put it?

by Pete Jones -
Number of replies: 4

Hi

I've just upgraded to 1.9.8 from 1.9.6 and I want to add in a password salt to the config.php file.

I've read the pasword salting documentation and understand what I have to add in, but I don't know where in the config file it should go.

Does it need to go before or after a particular line?

Thanks,

Pete

Average of ratings: -
In reply to Pete Jones

Re: Password salt - where do I put it?

by M. N. -
I think as long as you put it before the line that includes/requires "$CFG->dirroot/lib/setup.php" then it will be work.

See config-dist.php for a template with info on config.php settings.

Cheers
In reply to M. N.

Re: Password salt - where do I put it?

by Pete Jones -

Thank you; I've just had a look at the config.php settings and know where to put it.

I've got one more question though.

It says you have to add in a line for your old password salt so that current users will be able to login as normal the next time they use moodle.

Is this only relevant for existing password salts, or do I also need to add in a line to reference my existing database password.

Just to be sure, can I just leave my password where it is and add in the password salt because I don't have an existing password salt?

I want to make sure I get it right to avoid all of our users from having problems logging in.

Pete

In reply to Pete Jones

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Password salt - where do I put it?

by Pete Jones -

All done, and I can still login - success.

Thanks,

Pete