- CodeWise: Changed everything to use undefined when not present - CodeWise: checks for nonpresent value using `isNullish` - enableOtp: enable Otp, return topt url. Does nothing when already enabled - disableOtp: disable 2FA Totp for the user - statusOtp: get the 2FA status for the user. return the Totp Url if enabled - loginDemo: split into two files - loginDemo: supports for 2FA - loginDemo: better response box
12 lines
252 B
Bash
12 lines
252 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
set -x
|
|
# do anything here
|
|
|
|
mkdir -p /volumes/static/auth/
|
|
cp -r /extra/login_demo.html /volumes/static/auth/index.html
|
|
cp -r /extra/login_demo.js /volumes/static/auth/login_demo.js
|
|
|
|
# run the CMD [ ... ] from the dockerfile
|
|
exec "$@"
|