Allowed for spaces in passwords more permissively + fixed space bug
This commit is contained in:
parent
1451bf6941
commit
e9f626c36e
2 changed files with 4 additions and 4 deletions
|
@ -36,8 +36,8 @@ Username () {
|
||||||
}
|
}
|
||||||
|
|
||||||
Password () {
|
Password () {
|
||||||
[ -z $1 ] && conf_error "Password not specified in directive Password"
|
[ -z "$1" ] && conf_error "Password not specified in directive Password"
|
||||||
password="$1"
|
password="$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
AccessToken () {
|
AccessToken () {
|
||||||
|
@ -111,7 +111,7 @@ fi
|
||||||
# Run checks for essential directives
|
# Run checks for essential directives
|
||||||
[ -z $homeserver ] && conf_error "Homeserver directive is not present"
|
[ -z $homeserver ] && conf_error "Homeserver directive is not present"
|
||||||
[ -z $username ] && conf_error "Username 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 ####
|
#### Main ####
|
||||||
|
|
|
@ -13,5 +13,5 @@ Homeserver matrix-client.matrix.org
|
||||||
Username john_doe
|
Username john_doe
|
||||||
|
|
||||||
# The Password directive is your password for your account.
|
# 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
|
Password supersecretpassword
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue