Unable to register new user #859

Closed
opened 2021-05-12 14:08:39 +00:00 by Bouni · 5 comments

I had enableregistration set to false in my config.yaml because I was the only user of my setup.
Now I wanted to create a new user I can use at work.
I set the enableregistration to true and restarted the docker container, but still no registration button on the login screen.
If I manually go to /register I get the registration form, but if I fill and send it, I get an error 404.

Is there anything I need to do additionally to re-enable the registration?

I also checked if the config file is loaded, I see in the logs Using config file: /app/vikunja/config.yaml and if I docker exec -it vikunja-api shinto the container and cat the config file I get:

/app/vikunja # cat config.yaml
service:
  ...
  # Enable sharing of lists via a link
  enablelinksharing: true
  # Whether to let new users registering themselves or not
  enableregistration: true
  # Whether to enable task attachments or not
  enabletaskattachments: true
  # The time zone all timestamps are in
  ...

/api/v1/info gives me registration_enabled: false

I run 0.16.0+250-1e64e7efad

I had `enableregistration` set to false in my config.yaml because I was the only user of my setup. Now I wanted to create a new user I can use at work. I set the `enableregistration` to `true` and restarted the docker container, but still no registration button on the login screen. If I manually go to /register I get the registration form, but if I fill and send it, I get an error 404. Is there anything I need to do additionally to re-enable the registration? I also checked if the config file is loaded, I see in the logs `Using config file: /app/vikunja/config.yaml` and if I `docker exec -it vikunja-api sh`into the container and cat the config file I get: ``` /app/vikunja # cat config.yaml service: ... # Enable sharing of lists via a link enablelinksharing: true # Whether to let new users registering themselves or not enableregistration: true # Whether to enable task attachments or not enabletaskattachments: true # The time zone all timestamps are in ... ``` `/api/v1/info` gives me `registration_enabled: false` I run `0.16.0+250-1e64e7efad`
Owner

That's wired. I was not able to reproduce this with the current unstable.

A few things to try:

  1. Are you 100% sure the key is enableregistration? Try copying it from here into your config to see if that works
  2. Does it work if you add an env variable to enable? VIKUNJA_SERVICE_ENABLEREGISTRATION=1 should work
  3. Does it work if you remove the env variable and the entry in your config file?
  4. Are you sure you only have one config file in your container? Vikunja looks in a few places for config files.

Another interesting thing to note: The latest unstable version is v0.16.0+162-fc1867ec70 but your version has a higher number - what version are you running? Or is that the frontend version?

That's wired. I was not able to reproduce this with the current unstable. A few things to try: 1. Are you 100% sure the key is `enableregistration`? Try copying it from here into your config to see if that works 1. Does it work if you add an env variable to enable? `VIKUNJA_SERVICE_ENABLEREGISTRATION=1` should work 3. Does it work if you remove the env variable and the entry in your config file? 4. Are you sure you only have one config file in your container? Vikunja [looks in a few places for config files](https://vikunja.io/docs/config-options/#config-file-locations). Another interesting thing to note: The latest unstable version is `v0.16.0+162-fc1867ec70` but your version has a higher number - what version are you running? Or is that the frontend version?
Author

I just pulled the latest docker containers a few minutes ago and now the register button is shown!

So I tried to register my new user, but the system gives me "A user with this username already exists."

If I try to login as this user "Please confirm your email address." but I never received the confirmation email ...

Is there a way to resend the email?

Oh and by the way, you were right, I copied the verion from the browser console ...

At the moment I run Vikunja frontend version 0.16.0+251-c52b96a31b and Vikunja version v0.16.0+164-f670d394fa

I just pulled the latest docker containers a few minutes ago and now the register button is shown! So I tried to register my new user, but the system gives me "A user with this username already exists." If I try to login as this user "Please confirm your email address." but I never received the confirmation email ... Is there a way to resend the email? Oh and by the way, you were right, I copied the verion from the browser console ... At the moment I run `Vikunja frontend version 0.16.0+251-c52b96a31b` and `Vikunja version v0.16.0+164-f670d394fa`
Owner

Resending the confirmation mail is not implemented. You could manually enable them with the cli: https://vikunja.io/docs/cli/#user-change-status

Maybe it is worth checking your mail configuration works as well.

Resending the confirmation mail is not implemented. You could manually enable them with the cli: https://vikunja.io/docs/cli/#user-change-status Maybe it is worth [checking your mail configuration works](https://vikunja.io/docs/cli/#testmail) as well.
Author

Uhh, nice, i wasn't ware of a CLI!

I manually modified the user in the sqlite DB and that worked for me ...

Maybe a resend option is worth a feature request 😏

Uhh, nice, i wasn't ware of a CLI! I manually modified the user in the sqlite DB and that worked for me ... Maybe a resend option is worth a feature request :smirk:
Bouni closed this issue 2021-05-14 08:29:33 +00:00
Owner

Glad you figured it out.

Maybe a resend option is worth a feature request

Yeah I think so.

Glad you figured it out. > Maybe a resend option is worth a feature request Yeah I think so.
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#859
No description provided.