#688 Password Reset

Open
opened 1 month ago by Rustymage · 3 comments

Hi,

I've been a bit stupid and I've managed to get myself locked out of my account. I get a 412 'Username/Password' incorrect.

I can get my password reset email but I'm immediately redirected to the login page and cannot reset the password.

What have I done?

Thanks in advance.

Hi, I've been a bit stupid and I've managed to get myself locked out of my account. I get a 412 'Username/Password' incorrect. I can get my password reset email but I'm immediately redirected to the login page and cannot reset the password. What have I done? Thanks in advance.
Rustymage commented 1 month ago
Poster

So I've managed to get in, however I've had to take out the WAN URL and insert the LAN IP with the reset details to get it to allow me to reset. Once I clicked reset it said loading and then nothing happened.

I went to the URL and it has allowed me to login.

I have the logs but they didn't show anything, even when set at ERROR.

Here's my compose file:

version: '3'

services:
  api:
    image: vikunja/api
    environment:
      VIKUNJA_DATABASE_HOST: 192.168.1.115:3307
      VIKUNJA_DATABASE_PASSWORD: PASSWORD
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_ENABLEREGISTRATION: 'false'
      VIKUNJA_SERVICE_ENABLELINKSHARING: 'true'
      VIKUNJA_SERVICE_ENABLETASKATTACHMENTS: 'true'
      VIKUNJA_SERVICE_TIMEZONE: GMT
      VIKUNJA_SERVICE_ENABLETASKCOMMENTS: 'true'
      VIKUNJA_MAILER_ENABLED: 'true'
      VIKUNJA_MAILER_HOST: "smtp.gmail.com"
      VIKUNJA_MAILER_SKIPTLSVERIFY: 'false'
      VIKUNJA_MAILER_PORT: 587
      VIKUNJA_MAILER_USERNAME: "EMAIL"
      VIKUNJA_MAILER_PASSWORD: "PASSWORD"
      VIKUNJA_MAILER_FROMEMAIL: "mail@vikunja"
      VIKUNJA_SERVICE_FRONTENDURL: "URL/"
      VIKUNJA_FILES_BASEPATH: ./files
      VIKUNJA_MIGRATION_TODOIST_ENABLE: 'true'
      VIKUNJA_MIGRATION_TODOIST_CLIENTID: XXXX
      VIKUNJA_MIGRATION_TODOIST_CLIENTSECRET: XXXX
      VIKUNJA_MIGRATION_TODOIST_REDIRECTURL: https://URL/migrate/todoist
      VIKUNJA_LOG_PATH: ./files
      VIKUNJA_LOG_ENABLED: 'true'
      VIKUNJA_LOG_LEVEL: "ERROR"
#     VIKUNJA_SERVICE_ROOTPATH: /app/vikunja/files
    volumes:
      - ./files:/app/vikunja/files
    restart: unless-stopped
  frontend:
    image: vikunja/frontend
    restart: unless-stopped
  proxy:
    image: nginx
    ports:
      - 8087:80
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
    depends_on:
      - api
      - frontend
    restart: unless-stopped
So I've managed to get in, however I've had to take out the WAN URL and insert the LAN IP with the reset details to get it to allow me to reset. Once I clicked reset it said loading and then nothing happened. I went to the URL and it has allowed me to login. I have the logs but they didn't show anything, even when set at `ERROR`. Here's my compose file: ``` version: '3' services: api: image: vikunja/api environment: VIKUNJA_DATABASE_HOST: 192.168.1.115:3307 VIKUNJA_DATABASE_PASSWORD: PASSWORD VIKUNJA_DATABASE_TYPE: mysql VIKUNJA_DATABASE_USER: vikunja VIKUNJA_DATABASE_DATABASE: vikunja VIKUNJA_SERVICE_ENABLEREGISTRATION: 'false' VIKUNJA_SERVICE_ENABLELINKSHARING: 'true' VIKUNJA_SERVICE_ENABLETASKATTACHMENTS: 'true' VIKUNJA_SERVICE_TIMEZONE: GMT VIKUNJA_SERVICE_ENABLETASKCOMMENTS: 'true' VIKUNJA_MAILER_ENABLED: 'true' VIKUNJA_MAILER_HOST: "smtp.gmail.com" VIKUNJA_MAILER_SKIPTLSVERIFY: 'false' VIKUNJA_MAILER_PORT: 587 VIKUNJA_MAILER_USERNAME: "EMAIL" VIKUNJA_MAILER_PASSWORD: "PASSWORD" VIKUNJA_MAILER_FROMEMAIL: "mail@vikunja" VIKUNJA_SERVICE_FRONTENDURL: "URL/" VIKUNJA_FILES_BASEPATH: ./files VIKUNJA_MIGRATION_TODOIST_ENABLE: 'true' VIKUNJA_MIGRATION_TODOIST_CLIENTID: XXXX VIKUNJA_MIGRATION_TODOIST_CLIENTSECRET: XXXX VIKUNJA_MIGRATION_TODOIST_REDIRECTURL: https://URL/migrate/todoist VIKUNJA_LOG_PATH: ./files VIKUNJA_LOG_ENABLED: 'true' VIKUNJA_LOG_LEVEL: "ERROR" # VIKUNJA_SERVICE_ROOTPATH: /app/vikunja/files volumes: - ./files:/app/vikunja/files restart: unless-stopped frontend: image: vikunja/frontend restart: unless-stopped proxy: image: nginx ports: - 8087:80 volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - api - frontend restart: unless-stopped ```
konrad commented 1 month ago
Owner

The redirects happening sounds like an issue in the frontend, not the api. If there are any logs, they would be logged in your browser console when trying to access Vikunja.

Would you mind trying to reset your password again while keeping an eye on the browser console if anything shows up there? Also, can you reproduce this with a new account on try?

The redirects happening sounds like an issue in the frontend, not the api. If there are any logs, they would be logged in your browser console when trying to access Vikunja. Would you mind trying to reset your password again while keeping an eye on the browser console if anything shows up there? Also, can you reproduce this with a new account on [try](https://try.vikunja.io)?
konrad added the
kind/bug
label 1 month ago
Rustymage commented 1 month ago
Poster

Uncaught (in promise) Error: Navigation cancelled from "/?userPasswordReset=YHmvZUBLzLXRDbhslLwszwHvXTTnCYAUQkCfnkPMUoMqvlDnzdhJgmEEjwDJJlwsivjTedXngcyRmxmATHAisCgSclsWQPSmNlDCwYcBRsmFTbaOkPRLxUFSibaMtxrWOTqCLKUtchTAnZVgcsRjIktXJELcamDUOjONILsotSIRCiqYTUUgluumJLMCEpoXHHPHxaJNkQqvjmoVfQzXgPVIfcxsMZZJQISphQMSqBIiecYBcmMeyEiBTPWwwpMhXAaOdOHBMfbzYSxeocJZoCiymdvJaFKNdpYShBAcxOmtxYxgUoHSxIWuGArnzgfKBHMkCccmNABtamYPzrsInMyPEOFlGuuMToYzxWjcMEWdsTZLwwgbCHUVaSbeeQiYaimMzgntaHbyzTAB" to "/password-reset" with a new navigation.

I created an account on try but I couldn't receive emails for password reset.

Edit: @konrad - does this help?

`Uncaught (in promise) Error: Navigation cancelled from "/?userPasswordReset=YHmvZUBLzLXRDbhslLwszwHvXTTnCYAUQkCfnkPMUoMqvlDnzdhJgmEEjwDJJlwsivjTedXngcyRmxmATHAisCgSclsWQPSmNlDCwYcBRsmFTbaOkPRLxUFSibaMtxrWOTqCLKUtchTAnZVgcsRjIktXJELcamDUOjONILsotSIRCiqYTUUgluumJLMCEpoXHHPHxaJNkQqvjmoVfQzXgPVIfcxsMZZJQISphQMSqBIiecYBcmMeyEiBTPWwwpMhXAaOdOHBMfbzYSxeocJZoCiymdvJaFKNdpYShBAcxOmtxYxgUoHSxIWuGArnzgfKBHMkCccmNABtamYPzrsInMyPEOFlGuuMToYzxWjcMEWdsTZLwwgbCHUVaSbeeQiYaimMzgntaHbyzTAB" to "/password-reset" with a new navigation.` I created an account on try but I couldn't receive emails for password reset. Edit: @konrad - does this help?
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.