Skip to content

fixes: user and webmail auth flow #203

Open
asutoshranjan wants to merge 2 commits intodscnitrourkela:mainfrom
asutoshranjan:auth_flow_fix
Open

fixes: user and webmail auth flow #203
asutoshranjan wants to merge 2 commits intodscnitrourkela:mainfrom
asutoshranjan:auth_flow_fix

Conversation

@asutoshranjan
Copy link
Copy Markdown
Member

@asutoshranjan asutoshranjan commented Mar 14, 2023

fixes for #197

  • Phone number input page
  • Phone no. already registered case error in login
  • removed deregister webmail from menu
  • verifying user's roll number for webmail login

@asutoshranjan asutoshranjan changed the title fix: auth flow enhancement fixes: user and webmail auth flow Mar 14, 2023
'Fest Registration',
style: interTextTheme.headline2,
'Register with a Mobile Number',
style: interTextTheme.headline2!.copyWith(fontSize: SizeConfig.screenWidth! * 0.058),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use logical pixels

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing the code is better than commenting on it unless you think it might be used again in the future. I think you can remove the entire section.

mode: ToastMode.Error,
title: error,
);
if(error.contains("Unique constraint failed on the constraint: `User_mobile_key`") && error.contains("Invalid `prisma.user.create()`")) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit skeptical about this. Ideally you shouldn't use strings for performing checks, backend must send a well-formatted error response. Try to get it changed from the backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants