Allowed for spaces in passwords more permissively + fixed space bug
This commit is contained in:
parent
e27afb0482
commit
6274ab4282
2 changed files with 4 additions and 4 deletions
|
@ -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 ####
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue