Open GoogleCodeExporter opened 8 years ago
I solved the problems by changing useradd.php file.
Don't know how to make a pull request, so here's the diff:
$ diff useradd-svn.php useradd-modified.php
219c219
< $password=sha1($password1 . $username);
---
> $password=sha1($username . $password1);
237c237
< global $username, $password1, $password2, $timezone, $deafultnode,
$realname, $description, $email, $guilink,$usertimezone;
---
> global $username, $password1, $password2, $timezone, $deafultnode,
$realname, $description, $email, $guilink,$usertimezone, $securePassword;
249a250,253
> if ($securePassword){
> // Salt the pw with the username
> $password=sha1($username . $password1);
> }
251c255
< $query="UPDATE users SET password = '$password1',
---
> $query="UPDATE users SET password = '$password',
If you ended up without access to the web GUI, you can follow these steps to
regain access after applying these changes to the code:
1.- Access to the DB and change the password to something easy (i.e. 'asdf')
mysql -u root -p
select * from openfpcgui.users;
update openfpcgui.users set password='asdf' where id=<myuserid>;
2.- Set $securePassword=0 in includes/config.inc.php
3.- Login with the new password.
4.- Set $securePassword=1 in includes/config.inc.php
5.- Change the password through the GUI.
6.- Enjoy.
Original comment by jovi...@gmail.com
on 22 Jul 2014 at 10:33
Original issue reported on code.google.com by
Laurel.W...@gmail.com
on 5 Oct 2012 at 12:01