Merge pull request #1671 from progrium/user-auth

User Auth plugin trigger
This commit is contained in:
Jose Diaz-Gonzalez
2015-11-18 19:23:47 -05:00
3 changed files with 59 additions and 2 deletions

View File

@@ -351,3 +351,12 @@ get_available_port() {
fi
done
}
dokku_auth() {
export SSH_USER=${SSH_USER:=$USER}
export SSH_NAME=${NAME:="default"}
if ! plugn trigger user-auth $SSH_USER $SSH_NAME "$@" ; then
return 1
fi
return 0
}