mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix error with password reset email
This commit is contained in:
parent
1dad6dff06
commit
c1a89d69c4
@ -110,7 +110,7 @@ Poco::JSON::Object* JsonSendEmail::handle(Poco::Dynamic::Var params)
|
|||||||
{
|
{
|
||||||
session = sm->getNewSession();
|
session = sm->getNewSession();
|
||||||
if (emailType == model::EMAIL_USER_RESET_PASSWORD) {
|
if (emailType == model::EMAIL_USER_RESET_PASSWORD) {
|
||||||
auto r = session->sendResetPasswordEmail(receiver_user, false, receiver_user->getGroupBaseUrl());
|
auto r = session->sendResetPasswordEmail(receiver_user, true, receiver_user->getGroupBaseUrl());
|
||||||
if (1 == r) {
|
if (1 == r) {
|
||||||
return stateWarning("email already sended");
|
return stateWarning("email already sended");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user