mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
wait on check email for send password reset email to prevent misuse to find out which emails on server exist
This commit is contained in:
parent
34162de1ed
commit
a2261f08d0
@ -99,7 +99,7 @@ Poco::JSON::Object* JsonSendEmail::handle(Poco::Dynamic::Var params)
|
|||||||
return stateError("invalid session");
|
return stateError("invalid session");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Poco::Thread::sleep(ServerConfig::g_FakeLoginSleepTime);
|
||||||
auto receiver_user = controller::User::create();
|
auto receiver_user = controller::User::create();
|
||||||
if (1 != receiver_user->load(email)) {
|
if (1 != receiver_user->load(email)) {
|
||||||
return stateError("invalid email");
|
return stateError("invalid email");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user