MAPG-69 ability to cancel Google signup

This commit is contained in:
bence committed 2020-06-21 15:29:02 +02:00
1 parent 1cfbef418e
commit 6338e35cfb
3 files changed
+21 -3

No files matched your search

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