flutter_login icon indicating copy to clipboard operation
flutter_login copied to clipboard

Disable Password Login Field

Open syleishere opened this issue 3 years ago • 6 comments

I did my fastapi so that no passwords are needed anymore using oAuth2 tokens and sending link to their email address, any way to disable this password field?

syleishere avatar Apr 19 '21 07:04 syleishere

I don't believe there is currently a way to disable the password field as per FlutterLogin only allows for

bool hideForgotPasswordButton = false
bool hideSignUpButton = false

You could just skip the flutter_login part.

surister avatar Apr 24 '21 18:04 surister

I don't think there is any use for flutter_login if you don't need a password. I'm closing this for now. Please feel free to comment if you think this should be different.

juliansteenbakker avatar Jun 28 '21 10:06 juliansteenbakker

You don't want to use passwords, or second you start into android tv programming, your gonna wish you didn't in first place from experience trying to support many devices and OS's at once

syleishere avatar Jun 28 '21 10:06 syleishere

You don't want to use passwords, or second you start into android tv programming, your gonna wish you didn't in first place from experience trying to support many devices and OS's at once

I can understand the use case for when a password just isn't user friendly to use, however i'm not quite sure if we should implement such a flow in this package

juliansteenbakker avatar Jun 28 '21 11:06 juliansteenbakker

I guess that there could be situations where perhaps you want to login with just an ID or CODE thus needing only one field. And you want to use FlutterLogin to use the fancy animations and not just a boring text field.

But there are probably other bigger issues / features that are more important or relevant to the current package usage.

surister avatar Jun 28 '21 11:06 surister

Mainly what you want to do is store a .json file of username and oauth2 password and just log them in, if does not exist, then redirect to fastapi to send them an email to click on. That link should populate their .json file afterwards. Most cross compatible way of doing it I have found.

So say your logging someone into a TV, all they have is a remote, they quickly grab their phone, check their email and boom they are done type thing.

Dan.


From: surister @.> Sent: Monday, June 28, 2021 6:13:59 AM To: NearHuscarl/flutter_login @.> Cc: syle @.>; Author @.> Subject: Re: [NearHuscarl/flutter_login] Disable Password Login Field (#159)

I guess that there could be situations where perhaps you want to login with just an ID or CODE thus needing only one field. And you want to use FlutterLogin to use the fancy animations and not just a boring text field.

But there are probably other bigger issues / features that are more important or relevant to the current package usage.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/NearHuscarl/flutter_login/issues/159#issuecomment-869596398, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAWG7TE5QYG4KFGBGKFCOTLTVBKPPANCNFSM43FHAIHQ.

syleishere avatar Jun 28 '21 11:06 syleishere