mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
use new user class for check if password is empty by check email
This commit is contained in:
parent
48d53626c2
commit
52b836a235
@ -325,8 +325,8 @@ Poco::Net::HTTPRequestHandler* PageRequestHandlerFactory::handleCheckEmail(Sessi
|
||||
if (session) {
|
||||
auto user_host = request.clientAddress().host();
|
||||
session->setClientIp(user_host);
|
||||
assert(session->getUser());
|
||||
if (session->getUser()->isEmptyPassword()) {
|
||||
assert(session->getNewUser());
|
||||
if (!session->getNewUser()->hasPassword()) {
|
||||
// user has no password, maybe account created from elopage webhook
|
||||
auto pageRequestHandler = new UpdateUserPasswordPage(session);
|
||||
pageRequestHandler->setProfiler(timeUsed);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user