We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e83ad commit 9c823d5Copy full SHA for 9c823d5
scripts/sandbox_auth.sh
@@ -22,6 +22,13 @@ get_user_command_output=$(aws cognito-idp admin-get-user --user-pool-id "$cognit
22
get_user_command_exit_code=$?
23
set -e #re-enable
24
25
+if [[ $get_user_command_exit_code -ne 0 ]]; then
26
+ if ! echo "$get_user_command_output" | grep -q "UserNotFoundException"; then
27
+ echo "$get_user_command_output" >&2
28
+ exit $get_user_command_exit_code
29
+ fi
30
+fi
31
+
32
function gen_temp_password() {
33
upper=$(LC_ALL=C tr -dc 'A-Z' </dev/urandom | head -c 4; echo)
34
lower=$(LC_ALL=C tr -dc 'a-z' </dev/urandom | head -c 4; echo)
0 commit comments