Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(api): fix error message
Browse files Browse the repository at this point in the history
make the message more readable to users
  • Loading branch information
btry committed Dec 21, 2016
1 parent 8c04079 commit c721a07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inc/user.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ public function prepareInputForAdd($input) {
));
self::$creation = false;
if ($entityId === false) {

Session::addMessageAfterRedirect(__('Failed to create entity for the user', 'storkmdm'));
Session::addMessageAfterRedirect(__('An entity already exists for your email. You probably already have an account.', 'storkmdm'));
return false;
}

Expand Down

0 comments on commit c721a07

Please sign in to comment.