Merge branch 'fix-openid-removal' into 'master'

Fix OpenID URI removal

See merge request !138
This commit is contained in:
mmn 2017-04-06 09:12:35 +00:00
commit 6679ecb9d7

View File

@ -287,7 +287,7 @@ class OpenidsettingsAction extends SettingsAction
// TRANS: Form validation error for a non-existing OpenID.
throw new ClientException(_m('No such OpenID.'));
}
if ($this->scoped->getID() !== $oid->user_id) {
if ($this->scoped->getID() != $oid->user_id) {
// TRANS: Form validation error if OpenID is connected to another user.
throw new ClientException(_m('That OpenID does not belong to you.'));
}