Skip to content

Commit 8d3a10a

Browse files
authored
Merge pull request #65 from openclassify/spektra2147-fix2023-1
fix register decrypter
2 parents 54b6f73 + c0388f7 commit 8d3a10a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controller/ApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ public function register()
279279
$success = $encrypter->decrypt($this->request->get('success-verification'));
280280
$error = $encrypter->decrypt($this->request->get('error-verification'));
281281

282-
$email = strtolower($this->request->email);
282+
$email = $encrypter->decrypt($this->request->email);
283283

284-
if ($user = $users->findBy('email', $encrypter->decrypt($email))
284+
if ($user = $users->findBy('email', strtolower($email))
285285
and $activator->activate($user, $encrypter->decrypt($this->request->token))) {
286286

287287
$user->setAttribute('enabled', true);

0 commit comments

Comments
 (0)