Hello all,
Iām using the OAuth2 provider, and having a problem logging in, which I thought was initially independent and so I posted to this thread.
Other usersā logins work perfectly. However, when one of these users tries to login (and only this one), I get a āCreate new accountā screen even though the account already exists. If I enable local login, his login works perfectly. Predictably, if the email is kept, then a new account will not create.
Changing the userās email address or even username does not seem to have an impact - the error still happens.
Here is the information from User.find_by_username. Itās been anonymized, but is otherwise the actual info:
[1] pry(main)> u = User.find_by_username("testuser")
=> #<User:0x0055
id: 15,
username: "TestUser",
created_at: Thu, 25 May 2006 02:14:00 UTC +00:00,
updated_at: Mon, 27 Jun 2016 19:35:50 UTC +00:00,
name: "Test User",
seen_notification_id: 9321,
last_posted_at: Thu, 02 Jun 2016 17:40:11 UTC +00:00,
email: "testuser@example.org@",
password_hash:
"hidden",
salt: "hidden",
active: true,
username_lower: "testuser",
auth_token: nil,
last_seen_at: Mon, 27 Jun 2016 13:49:01 UTC +00:00,
admin: false,
last_emailed_at: Mon, 27 Jun 2016 19:35:38 UTC +00:00,
trust_level: 4,
approved: true,
approved_by_id: nil,
approved_at: nil,
previous_visit_at: Thu, 09 Jun 2016 19:11:03 UTC +00:00,
suspended_at: nil,
suspended_till: nil,
date_of_birth: nil,
views: 0,
flag_level: 0,
ip_address: #<IPAddr: IPv4:x.x.x.x/255.255.255.255>,
moderator: false,
blocked: false,
title: nil,
uploaded_avatar_id: nil,
locale: "",
primary_group_id: 42,
registration_ip_address: nil,
trust_level_locked: true,
staged: false,
first_seen_at: Thu, 09 Jun 2016 19:11:03 UTC +00:00>
[2] pry(main)>
Any thoughts as to why this (and only this) particular user might be ābrokenā?