From 3419f8b8d14371505155aa80b69f989b66b4830b Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Mon, 1 Apr 2024 06:00:49 -0700 Subject: [PATCH] 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. --- app/controllers/devise/omniauth_callbacks_controller.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/devise/omniauth_callbacks_controller.rb b/app/controllers/devise/omniauth_callbacks_controller.rb index 23ff20eb..0054337d 100644 --- a/app/controllers/devise/omniauth_callbacks_controller.rb +++ b/app/controllers/devise/omniauth_callbacks_controller.rb @@ -7,11 +7,12 @@ class Devise::OmniauthCallbacksController < ApplicationController if @auth_user.previously_new_record? flash[:notice] = - "Welcome to Dress to Impress, #{@auth_user.name}! We've set up a DTI " + - "account for you. Click Settings in the top right to learn more, or " + - "just go ahead and get started!" + "Welcome to Dress to Impress! We've set up a DTI account for you, " + + "attached to your NeoPass. Click Settings in the top right to learn " + + "more, or just go ahead and get started!" else - flash[:notice] = "Welcome back, #{@auth_user.name}! 💖" + flash[:notice] = + "Welcome back, #{@auth_user.name}! You are now logged in. 💖" end sign_in_and_redirect @auth_user, event: :authentication