sasjs / server

Build Apps on Base SAS
https://server.sasjs.io
MIT License
20 stars 3 forks source link

Reset Admin Password Capability #348

Closed allanbowe closed 1 year ago

allanbowe commented 1 year ago

We need the ability to reset the admin password without needing to rebuild the database. We can use this opportunity to make the Admin User and Initial Password configurable also. The proposal is to have three new options:

If the ADMIN_USERNAME (default is secretuser) does not exist, it will be created.

If ADMIN_PASSWORD_RESET is YES (default is NO) then the ADMIN_USERNAME will be prompted to change the password from ADMIN_PASSWORD_INITIAL on their next login. This will repeat on every server restart, unless the option is removed / set to NO.

ADMIN_PASSWORD_INITIAL (default is secretpassword) is used to define the default password for the ADMIN_USERNAME, which is in place until the first login (or next restart if ADMIN_PASSWORD_RESET=YES)

allanbowe commented 1 year ago

if username is not an existing internal admin then we should ignore the settings and print an error to the log

sasjsbot commented 1 year ago

:tada: This issue has been resolved in version 0.33.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: