Skip to content

Commit

Permalink
qrcodemodel: Always include the content URI to the output
Browse files Browse the repository at this point in the history
In some cases (e.g. small terminals, tty's) the qrcode is not properly
rendered or is not fully visible, so make the URI to be always written
so that it can be used also without a qrcode scanner
  • Loading branch information
3v1n0 committed Jul 3, 2024
1 parent c87c301 commit 94abab8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Scan the qrcode or enter the code in the login page
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
https://ubuntu.com
1337

[ Regenerate code ]
Expand All @@ -167,7 +168,6 @@ Scan the qrcode or enter the code in the login page




────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand All @@ -190,6 +190,7 @@ Scan the qrcode or enter the code in the login page
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
https://ubuntu.com
1337

[ Regenerate code ]
Expand All @@ -210,7 +211,6 @@ Scan the qrcode or enter the code in the login page




────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand All @@ -233,6 +233,7 @@ Scan the qrcode or enter the code in the login page
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
https://ubuntu.com
1337

[ Regenerate code ]
Expand All @@ -253,7 +254,6 @@ Scan the qrcode or enter the code in the login page




────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand All @@ -276,6 +276,7 @@ Scan the qrcode or enter the code in the login page
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
https://ubuntu.com
1337

PAM Authenticate() for user "user-integration-qr-code" exited with success
Expand All @@ -296,7 +297,6 @@ PAM AcctMgmt() exited with success




────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand All @@ -319,6 +319,7 @@ Scan the qrcode or enter the code in the login page
████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
https://ubuntu.com
1337

PAM Authenticate() for user "user-integration-qr-code" exited with success
Expand All @@ -339,5 +340,4 @@ PAM AcctMgmt() exited with success




────────────────────────────────────────────────────────────────────────────────
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -206,11 +206,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -249,11 +249,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -292,11 +292,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

PAM Authenticate() for user "user-integration-qr-code-tty" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -335,9 +335,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

PAM Authenticate() for user "user-integration-qr-code-tty" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -206,11 +206,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -249,11 +249,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

[ Regenerate code ]


────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -292,11 +292,11 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
> if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi
> ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK}
Expand Down Expand Up @@ -335,9 +335,9 @@ Scan the qrcode or enter the code in the login page
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
https://ubuntu.com
1337

PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success
PAM AcctMgmt() exited with success
>
────────────────────────────────────────────────────────────────────────────────
Loading

0 comments on commit 94abab8

Please sign in to comment.