fixed bug when updating user when no roles were selected, changed change-password link
This commit is contained in:
parent
edbfc781d0
commit
413d49342d
|
@ -83,7 +83,7 @@ sub updateUser {
|
||||||
$user->userroles->create({ role => $s}) ;
|
$user->userroles->create({ role => $s}) ;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$user->userroles->create({ role => $roles}) ;
|
$user->userroles->create({ role => $roles}) if defined $roles ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ sub reset_password : Chained('user') PathPart('reset-password') Args(0) {
|
||||||
"New password for Hydra",
|
"New password for Hydra",
|
||||||
"Hi,\n\n".
|
"Hi,\n\n".
|
||||||
"Your password has been reset. Your new password is '$password'.\n".
|
"Your password has been reset. Your new password is '$password'.\n".
|
||||||
"You can change your password at http://".hostname_long." .\n".
|
"You can change your password at http://".hostname_long."/change-password .\n".
|
||||||
"With regards, Hydra\n"
|
"With regards, Hydra\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue