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

[mobile] support non-numeric passwords #14

Merged
merged 6 commits into from May 11, 2021

Conversation

ollieparanoid
Copy link
Contributor

Interface Sxmo does not require a numeric password, so let's add an option that allows to disable the numeric password. Also there is work being done to allow non-numeric passwords in Phosh (phosh!801).

While at it, add an option to disable the built-in virtual keyboard and fix a bug I found while developing this, navNextFeature wasn't able to skip more than one disabled feature at the same time.

Find details in the commit messages.

CC: @adriaandegroot, @Undef-a

Allow to always hide the built-in qtvirtualkeyboard to support using a
different keyboard.

Related: https://gitlab.com/postmarketOS/postmarketos-ondev/-/issues/47
Prepare to add a config option to allow non-numeric passwords, by giving
the existing default_pin screen the more generic name user_pass.
Adjust the title of the screen too.

"default" in the file name was referring to configuring the default
user's PIN/password as opposed to the SSH user. However, I think
replacing it with "user" makes it more intuitive.
Change "cannot be typed in at boot time" to "can possibly not be typed
in after installation" and explain that the same check is now used for
the user password too.
Fix the condition in the while loop, so that it can actually continue
with the "continue" keyword. Without this patch, having the sshd
feature disabled would result in the fsType feature getting displayed,
even if it was disabled.
algitbot pushed a commit to alpinelinux/aports that referenced this pull request May 2, 2021
Apply patches from the following MR, as they are required by
postmarketos-ondev 0.5.0. I wrote most of the upstream mobile module
code and I'm confident that they will get merged with either no or
little changes: calamares/calamares-extensions#14
Copy link
Contributor

@adriaandegroot adriaandegroot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, LGTM; you're the mobile-QML person after all. Two comments on possible code-style improvements.

modules/mobile/Config.h Show resolved Hide resolved
modules/mobile/mobile.qml Outdated Show resolved Hide resolved
Make it more readable as for-loop.
Copy link
Contributor Author

@ollieparanoid ollieparanoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick review, @adriaandegroot!

modules/mobile/mobile.qml Outdated Show resolved Hide resolved
modules/mobile/Config.h Show resolved Hide resolved
@adriaandegroot adriaandegroot merged commit 6f32c18 into calamares:calamares May 11, 2021
@ollieparanoid ollieparanoid deleted the non-numeric-pass branch November 6, 2021 07:40
@ollieparanoid
Copy link
Contributor Author

ollieparanoid commented Nov 6, 2021

@adriaandegroot: how about tagging a new release of calamares-extensions? :)

EDIT: this PR is part of latest release 1.1.2 already, however, a new release would be good to have 718f73c. Thanks for adjusting the code btw!

@adriaandegroot
Copy link
Contributor

@ollieparanoid There's a 1.2.1 now.

@ollieparanoid
Copy link
Contributor Author

Thank you very much @adriaandegroot!

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

Successfully merging this pull request may close these issues.

None yet

2 participants