Tweak NeoPass login success messages, to focus less on random username

Until we have more figured out about the username situation here, let's
not greet the user by the name we *generated* for them.
This commit is contained in:
Emi Matchu 2024-04-01 06:00:49 -07:00
parent 6618651fcb
commit 3419f8b8d1

View file

@ -7,11 +7,12 @@ class Devise::OmniauthCallbacksController < ApplicationController
if @auth_user.previously_new_record? if @auth_user.previously_new_record?
flash[:notice] = flash[:notice] =
"Welcome to Dress to Impress, #{@auth_user.name}! We've set up a DTI " + "Welcome to Dress to Impress! We've set up a DTI account for you, " +
"account for you. Click Settings in the top right to learn more, or " + "attached to your NeoPass. Click Settings in the top right to learn " +
"just go ahead and get started!" "more, or just go ahead and get started!"
else else
flash[:notice] = "Welcome back, #{@auth_user.name}! 💖" flash[:notice] =
"Welcome back, #{@auth_user.name}! You are now logged in. 💖"
end end
sign_in_and_redirect @auth_user, event: :authentication sign_in_and_redirect @auth_user, event: :authentication