Allowed for spaces in passwords more permissively + fixed space bug

This commit is contained in:
Jeremy Baxter 2022-04-20 10:11:38 +12:00
parent e27afb0482
commit 6274ab4282
2 changed files with 4 additions and 4 deletions

View file

@ -36,8 +36,8 @@ Username () {
}
Password () {
[ -z $1 ] && conf_error "Password not specified in directive Password"
password="$1"
[ -z "$1" ] && conf_error "Password not specified in directive Password"
password="$*"
}
AccessToken () {
@ -111,7 +111,7 @@ fi
# Run checks for essential directives
[ -z $homeserver ] && conf_error "Homeserver directive is not present"
[ -z $username ] && conf_error "Username directive is not present"
[ -z $password ] && conf_error "Password directive is not present"
[ -z "$password" ] && conf_error "Password directive is not present"
##############
#### Main ####

View file

@ -13,5 +13,5 @@ Homeserver matrix-client.matrix.org
Username john_doe
# The Password directive is your password for your account.
# If your password has spaces, put speech marks ("") around it.
# Example with spaces: Password This is my super duper secure password.
Password supersecretpassword