Skip to content

Functionality for "Forgot password" #764

@GGunnar

Description

@GGunnar

Description

Today the only way to reset password is with admin interaction. We should automate this process so that there is no need for human intervention for users who have forgot their password.

We should set up an email server that could be used to send an email with link for reset of password using existing functionality in Gitea that is currently disabled.

Screenshot

https://www.figma.com/file/EG80RgF70SgMyewzKpb5fJ9M/Altinn-Studio?node-id=598%3A8742

Default UI in Gitea:
image

image

Navigation from/to (if relevant)

From Login page
On landing page you will have two choices:

  • go back to home page by clicking on altinn icon
  • Button to reset password

Technical considerations

  • Configuration needs to use environment variables so secrets are not part of altinn-studio repo
  • Consider if recaptcha should be enabled (to avoid spam users)
  • Will email notifications with pr be included?

Acceptance criterea

  • We have a secure mail service that studio and gitea can utilize
  • Gitea is properly configured to use the mail service
  • Forgot password functionality s working
  • Confirmation mail for registering new Gitea-users is sent

Design/Functional Tasks

- [ ] Email template for the reset password functionality (if possible to modify)

  • Formulate text to be shown after password (translate Gitea text to norwegian)

Development Tasks

  • Set up email server
  • Update Gitea app.ini
    • Required mail config (as env. variables and use of secrets)
    • Also set REGISTER_EMAIL_CONFIRM = true
    • Also set ENABLE_NOTIFY_EMAIL = true
  • Confirm IP for production
    - [ ] Override authz e-mail templates in repository and ensure correct norwegian texts. Doc on how to

Test/QA

  • Verify if emails are sent out
    - [ ] No mix of norwegian and english text, everything should be norwegian refer comment
  • Email sent during registration of new user
  • Email sent for forgot password

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/loginArea: Related to logging into Altinn Studio.kind/user-storyUsed for issues that describes functionality for our users.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions