File tree Expand file tree Collapse file tree 7 files changed +664
-242
lines changed
frontend/src/components/shared Expand file tree Collapse file tree 7 files changed +664
-242
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,6 @@ def request_new_email_conf():
8787 token = generate_confirmation_token (email = email , token_type = "confirm" )
8888 link = FRONTEND_EMAIL_CONFIRMATION_URL + token
8989 rendered_html = render_template ("confirm_email.html" , link = link )
90- send_mail_html .delay (dest = data ["email" ], subject = "Confirm your email on PyMatcha " , html = rendered_html )
90+ send_mail_html .delay (dest = data ["email" ], subject = "Confirm your email on Matcha " , html = rendered_html )
9191 logging .debug ("/auth/confirm/new -> New confirmation email sent if user exists in database" )
9292 return Success ("New confirmation email sent if user exists in database and isn't already confirmed." )
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def forgot_password():
5454 link = FRONTEND_PASSWORD_RESET_URL + token
5555 rendered_html = render_template ("password_reset.html" , link = link )
5656 logging .debug ("Sending worker request to send email" )
57- send_mail_html .delay (dest = data ["email" ], subject = "Reset your password on PyMatcha " , html = rendered_html )
57+ send_mail_html .delay (dest = data ["email" ], subject = "Reset your password on Matcha " , html = rendered_html )
5858 logging .debug ("Password reset mail sent successfully for user." )
5959 return Success ("Password reset mail sent successfully if user exists in DB." )
6060
Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ def api_create_user():
5555 token = generate_confirmation_token (email = data ["email" ], token_type = "confirm" )
5656 link = FRONTEND_EMAIL_CONFIRMATION_URL + token
5757 rendered_html = render_template ("confirm_email.html" , link = link )
58- send_mail_html .delay (dest = data ["email" ], subject = "Confirm your email on PyMatcha " , html = rendered_html )
58+ send_mail_html .delay (dest = data ["email" ], subject = "Confirm your email on Matcha " , html = rendered_html )
5959 logging .info ("Registered new user successfully." )
6060 return SuccessOutputMessage ("email" , new_user .email , "New user successfully created." )
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def edit_email():
194194 token = generate_confirmation_token (email = new_email , token_type = "confirm" )
195195 link = FRONTEND_EMAIL_CONFIRMATION_URL + token
196196 rendered_html = render_template ("confirm_email.html" , link = link )
197- send_mail_html .delay (dest = new_email , subject = "Confirm your email on PyMatcha " , html = rendered_html )
197+ send_mail_html .delay (dest = new_email , subject = "Confirm your email on Matcha " , html = rendered_html )
198198 logging .info (f"Edited email for { current_user .id } " )
199199 return Success ("Email sent for new email." )
200200
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 2323 </div >
2424 <div id =" links" v-on:click =" openOnSmallerScreens()" v-bind:class =" isOpen ? 'block' : 'hidden'" class =" px-2 pb-5 text-center md:p-0 md:block md:flex md:items-center" >
2525 <div v-if =" !loggedIn" class =" md:flex md:bg-purple-matcha md:border-2 md:border-purple-matcha md:rounded-lg" >
26- <router-link to =" /accounts/signin" class =" navigation-button-logged-in md:hover:bg-white-matcha md:hover:text-purple-matcha md:text-purple-matcha md:bg-white-matcha md:py-2 md:px-8 md:rounded-md mx-0" >Sign In</router-link >
27- <router-link to =" /accounts/signup" class =" navigation-button-logged-in md:hover:bg-purple-matcha md:hover:text-white-matcha md:text-white-matcha md:py-2 md:px-8" >Get Started</router-link >
26+ <router-link to =" /accounts/signin" class =" navigation-button-logged-in md:hover:bg-white-matcha md:hover:text-purple-matcha md:text-purple-matcha md:bg-white-matcha md:py-2 md:px-8 md:rounded-md mx-0 whitespace-no-wrap " >Sign In</router-link >
27+ <router-link to =" /accounts/signup" class =" navigation-button-logged-in md:hover:bg-purple-matcha md:hover:text-white-matcha md:text-white-matcha md:py-2 md:px-8 whitespace-no-wrap " >Get Started</router-link >
2828 </div >
2929 <router-link v-if =" loggedIn && profileCompleted" to =" /browse" v-bind:class =" {'navigation-button-logged-in': true, 'font-black': currentRoute === 'Browse'}" >Browse</router-link >
3030 <router-link v-if =" loggedIn && profileCompleted" to =" /search" v-bind:class =" {'navigation-button-logged-in': true, 'font-black': currentRoute === 'Search'}" >Search</router-link >
You can’t perform that action at this time.
0 commit comments