Password Reset #688

Closed
opened 2020-10-17 17:39:26 +00:00 by Rustymage · 6 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.
Author

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 ```
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 2020-10-17 18:38:56 +00:00
Author

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?
Owner

(sorry for the late response)

Do any network requests happen? The error message from the console does not seem to be related to that.

(sorry for the late response) Do any network requests happen? The error message from the console does not seem to be related to that.
Owner

Looks like this is definitely broken, I was able to kind of reproduce it locally.

Looks like this is definitely broken, I was able to kind of reproduce it locally.
Owner

Should be fixed in 624e4e6d27 - please try the newest release.

Feel free to reopen in case of any problems.

Should be fixed in https://kolaente.dev/vikunja/frontend/commit/624e4e6d2714e06fb8d509eaaba6c4a99a6dbb90 - please try the newest release. Feel free to reopen in case of any problems.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#688
No description provided.