MAPG-69 ability to reset signup filled after login attempt

This commit is contained in:
bence committed 2020-06-21 15:12:45 +02:00
1 parent 285f2dd0ac
commit a8777b897b
5 files changed
+31 -2

No files matched your search

+8
View File
@@ -291,6 +291,14 @@ class LoginController
return new JsonContent($data);
}
public function resetSignup(): IContent
{
$this->request->session()->delete('tmp_user_data');
$data = ['success' => true];
return new JsonContent($data);
}
public function activate()
{
if ($this->request->user() !== null) {