ODM2 / ODM2DataSharingPortal

A Python-Django web application enabling users to upload, share, and display data from their environmental monitoring sites via the app's ODM2 database. Data can either be automatically streamed from Internet of Things (IoT) devices, manually uploaded via CSV files, or manually entered into forms.
BSD 3-Clause "New" or "Revised" License
31 stars 8 forks source link

Allow users to recover a forgotten username #684

Closed SRGDamia1 closed 6 months ago

SRGDamia1 commented 9 months ago

Right now users log in by username instead of by email. There needs to be a way to recover a forgotten user name from the email or to allow either the username or the email to be valid for logging in.

SRGDamia1 commented 9 months ago

Oh, actually I tested it and you can use either the user name or the email to sign in. The text in the login box needs to be changed to clarify that either is valid.

aufdenkampe commented 6 months ago

@ptomasula, Has this been addressed already?

aufdenkampe commented 6 months ago

It appears that the functionality is fine. It's possible to log in with an email address if you don't know your username.

Unfortunately, the login box says username, and we can't easily change it because it is the default by Cognito.

Closing for now. If necessary, we can create a new issue, for the back burner, to implement a custom interface for Cognito.

aufdenkampe commented 6 months ago

@HeatherBrooks, perhaps its worth mentioning in https://wikiwatershed.org/kbcategories/monitor-my-watershed-envirodiy-sensor-data-manual/ that a user can login with their email address as an alternate to their username.

The edit would go here, https://wikiwatershed.org/knowledge-base/create-edit-account/, but that page looks like it might be out of date since we updated our login to be handled by AWS Cognito.

HeatherBrooks commented 6 months ago

@aufdenkampe, I've updated the Create and Edit an Account section of the Monitor My Watershed knowledge base. Please let me know if there are any additional edits.

In particular, I'm not sure this statement is still true: "If you are independent of an organization, you do not need to include one." Is there an option to self-affiliate now?