summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/finishopenidlogin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/finishopenidlogin.php b/actions/finishopenidlogin.php
index 3d0c8f277..2b3616ffa 100644
--- a/actions/finishopenidlogin.php
+++ b/actions/finishopenidlogin.php
@@ -264,8 +264,9 @@ class FinishopenidloginAction extends Action {
$profile->delete();
}
+ $result = oid_link_user($user->id, $canonical, $display);
- if (!oid_link_user($user->id, $canonical, $display) {
+ if (!$result) {
# Try to clean up...
$user->delete();
$profile->delete();