Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67d852db authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

remove autologin for sso

parent c248e08e
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -65,13 +65,6 @@ class BeforeTemplateRenderedListener implements IEventListener {
			return;
		}

		// Just send over '1' as password to trigger login as the plugin will set the correct access token
		$password = self::SNAPPYMAIL_AUTOLOGIN_PWD; // As we cannot pass by reference to LoginProcess
		$account = $actions->LoginProcess($accountId, $password, false);
		if ($account) {
			$actions->Plugins()->RunHook('login.success', array($account));
			$actions->SetAuthToken($account);
		}
	}

	private function getAccountId(): string {