Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User is not prompted for password when script is run. #12

Open
jhbush opened this issue Nov 10, 2017 · 1 comment
Open

User is not prompted for password when script is run. #12

jhbush opened this issue Nov 10, 2017 · 1 comment

Comments

@jhbush
Copy link

jhbush commented Nov 10, 2017

Terminal Output when run in verbose.

Prompting jbush for their Mac password (attempt 2)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
Prompting jbush for their Mac password (attempt 3)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
Prompting jbush for their Mac password (attempt 4)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
Prompting jbush for their Mac password (attempt 5)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
[ERROR] Password prompt unsuccessful after 5 attempts. Displaying "forgot password" message...
🦄  Fri Nov 10 11:08:40 [jbush@LP-JHBUSH-OSX:~]# 
@homebysix
Copy link
Owner

@jhbush Can you let me know what you use for the LOGO variable on line 23? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants