Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes: user and webmail auth flow #203

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

asutoshranjan
Copy link
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
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
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
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