Skip to content

Password cannot be changed in demo mode #329

@erikboberg

Description

@erikboberg

Describe the bug
When I try to change the admin password it is not possible and the log shows the following error:

File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 489, in _resolve_from_executor
executor(resolve, reject)
File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 756, in executor
return resolve(f(*args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/graphql/execution/middleware.py", line 75, in make_it_promise
return next(*args, **kwargs)
File "/srv/photonix/accounts/schema.py", line 137, in mutate
raise GraphQLError('Password cannot be changed in demo mode!')
graphql.error.located_error.GraphQLLocatedError: Password cannot be changed in demo mode!

I am running the server with docker and I have set the ENV variable DEMO to 0.

Expected behavior
I should be able to change the password

Server (please complete the following information):

  • Device: PC
  • OS: Linux (Unraid)
  • Architecture: AMD64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions