Skip to content

Commit

Permalink
Merge branch 'release/2.6.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Apr 12, 2018
2 parents 0905c0f + f62c686 commit 05afc8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.6.3
## 04/12/2018

1. [](#bugfix)
* Fixed issue with saving profile and stating email has already exists

# v2.6.2
## 04/12/2018

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Login
version: 2.6.2
version: 2.6.3
description: Enables user authentication and login screen.
icon: sign-in
author:
Expand Down
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ private function processUserProfile($form, Event $event)
// Check for existing email
$email = $form->value('email');
$existing_email = User::find($email,['email']);
if ($existing_email->exists()) {
if ($user->username != $existing_email->username && $existing_email->exists()) {
$this->grav->fireEvent('onFormValidationError', new Event([
'form' => $form,
'message' => $language->translate([
Expand Down

0 comments on commit 05afc8d

Please sign in to comment.