sasjs / server

Build Apps on Base SAS

Home Page:https://server.sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset Admin Password Capability

allanbowe opened this issue ยท comments

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:

  • ADMIN_USERNAME={string} (secretuser)
  • ADMIN_PASSWORD_RESET=YES/NO (NO)
  • ADMIN_PASSWORD_INIITAL={string} (secretpassword)

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)

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

๐ŸŽ‰ This issue has been resolved in version 0.33.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€