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

fix: login stuck for passwordless users in nopasswdlogin group #331

Closed
wants to merge 1 commit into from

Conversation

openarun
Copy link

Password less users in the group nopasswdlogin was stuck in the login screen.

Log: fix login stuck for passwordless users in nopasswdlogin group

Comment on lines -521 to -523
if (!user_ptr->isPasswordValid()) {
qWarning() << userPath;
emit m_model->authFailedTipsMessage(tr("Wrong account"));
m_model->setAuthType(AT_None);
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Moving these all to the end of the function might lead to creating authentication even when the user is not in the nopasswdlogin group and his or her password is not set. I think you should judge if a user is in the nopasswdlogin group right here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, how do you think about my comment here?

@asterwyx
Copy link
Contributor

By the way, please rebase your branch and pass all the checks.

@deepin-bot
Copy link

deepin-bot bot commented Jan 5, 2024

TAG Bot

New tag: 6.0.15
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #351

@deepin-bot
Copy link

deepin-bot bot commented Jan 25, 2024

TAG Bot

New tag: 6.0.16
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #356

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openarun

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-bot
Copy link

deepin-bot bot commented Feb 1, 2024

TAG Bot

New tag: 6.0.17
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #358

Password less users in the group nopasswdlogin was stuck in the login screen.

Log: fix login stuck for passwordless users in nopasswdlogin group
@asterwyx
Copy link
Contributor

According to our current policy, we don't allow passwordless users even if we provide nopasswdlogin. All users must set a password.

@asterwyx asterwyx closed this Mar 22, 2024
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.

3 participants