Browse Source
Merge pull request #2998 from masbicudo/dev
Notify user about a possible problem when using synology_dsm.sh with user that enabled 2fa
pull/3653/head
neil
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
deploy/synology_dsm.sh
|
@ -100,6 +100,7 @@ synology_dsm_deploy() { |
|
|
if [ -z "$token" ]; then |
|
|
if [ -z "$token" ]; then |
|
|
_err "Unable to authenticate to $SYNO_Hostname:$SYNO_Port using $SYNO_Scheme." |
|
|
_err "Unable to authenticate to $SYNO_Hostname:$SYNO_Port using $SYNO_Scheme." |
|
|
_err "Check your username and password." |
|
|
_err "Check your username and password." |
|
|
|
|
|
_err "If two-factor authentication is enabled for the user, you have to choose another user." |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
sid=$(echo "$response" | grep "sid" | sed -n 's/.*"sid" *: *"\([^"]*\).*/\1/p') |
|
|
sid=$(echo "$response" | grep "sid" | sed -n 's/.*"sid" *: *"\([^"]*\).*/\1/p') |
|
|