Commit c72d5b9c authored by Michael Rose's avatar Michael Rose

auth: if user is unconfirmed, confirm them

parent 6972865c
......@@ -50,6 +50,12 @@ class SsoController < DeviseController
# Applies the DLP account id to the user.
def link_dlp_account(user)
user.dlp_id = @jwt['dlp_id']
unless user.confirmed?
# DLP verified the email.
user.skip_confirmation!
end
user.save!
user
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment