Hi!
Thanks for this awesome piece of code GitLab!
I run an 14.8.2 instance for a company with AD/LDAP authentication. Recently this company changed their primary email domain from example.ind.br to example.com.br and now no user can login.
I have tried updating the email address from web gui (but got “Email is not allowed. Check with your administrator.”) and rails console but no luck.
root@git:/var/log/gitlab# gitlab-rails console
--------------------------------------------------------------------------------
Ruby: ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
GitLab: 14.8.2-ee (20a7fdf52c9) EE
GitLab Shell: 13.23.2
PostgreSQL: 12.7
------------------------------------------------------------[ booted in 33.07s ]
Loading production environment (Rails 6.1.4.6)
irb(main):001:0> user = User.find_by_email("vinicius.santos@example.ind.br")
=> #<User id:46 @vinicius.santos>
irb(main):002:0> user.email
=> "vinicius.santos@example.ind.br"
irb(main):003:0> user.email='vinicius.santos@example.com.br'
=> "vinicius.santos@example.com.br"
irb(main):004:0> user.save
**=> false**
irb(main):005:0> user.email
=> "vinicius.santos@example.com.br"
irb(main):006:0> user.skip_reconfirmation!
=> true
irb(main):007:0> user.save
**=> false**
irb(main):008:0>
Can anyone please assist me to make the mail update work either by sync or manually or point me the proper RTFM regarding this sync or limitation?
Thanks in advance!