Altinn / Altinn/altinn-authentication
Vurdere om "glemt passord" funksjonallitet burde tillate at man oppgir epost i stedet for/tilleg til brukernavn
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 8
- Forks
- 6
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 21
Description
Vi fikk en issue i dag med noen som ikke fikk til å koble ny epost-bruker mot gammel SI bruker. Jeg misstenker at dette skyldes at bruker kan ha skrevet inn epost-addresse i stedet for brukernavn i "glemt passord" dialogen.
Jeg har selv opplevd flere sider hvor "glemt passord" ber deg oppgi epost, og ikke brukernavn, og ser for meg at dette kanskje er en lett feil å gjøre hvis man ikke leser dialogen veldig nøye? Burde vi tillate at man kan oppgi brukernavn eller epost-addresse? Og sende til epost-addressen knyttet til brukernavnet hvis det finnes, ellers finne bruker med oppgitt epost og sende til denne?
Pseudo kode:
var user = FindUserByUsername(input) ?? FindUserByPassword(input);
if (user)
{
SendEmailTo(user.Email);
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the forgotten-password dialog and the user lookup flow described in the issue, then trace how the submitted identifier is matched and where the reset email is sent. The issue is done when the team has decided and documented whether username, email, or both are accepted, including the matching and delivery behavior, with coverage for the chosen cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- authentication, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100