feat: support automatic login for user sessions - #106
Conversation
|
Skipping CI for Draft Pull Request. |
Reviewer's GuideAdds an automatic user login feature by introducing a dedicated ddm‑autologin PAM service, new autologin configuration options, and refactoring the display login flow to reuse a shared session-start routine that supports both normal and passwordless login paths. Sequence diagram for automatic login vs showing greetersequenceDiagram
actor Greeter
participant Display
participant Auth
participant Pam_ddm_autologin
Greeter->>Display: connected(socket)
Display->>Display: check auths for active sessions
alt [no active user] and [Autologin.User set] and [Autologin.Timeout == 0]
Display->>Display: startAutologin()
Display->>Auth: new Auth(this, user)
Display->>Auth: set pamService = ddm-autologin
Auth->>Pam_ddm_autologin: authenticate(QByteArray())
Pam_ddm_autologin-->>Auth: success/failure
alt [authentication success]
Display->>Display: startUserSession(auth, session)
Display-->>Greeter: (no message, greeter stays hidden)
else [authentication failed or session start failed]
Display-->>Greeter: ShowGreeter
end
else other cases
Display-->>Greeter: ShowGreeter
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
1b168b5 to
3e96f6b
Compare
PR 审查结果对 treeland #1305 + ddm #106 的联合审查中,ddm 部分的审查结论如下。整体方案连贯,无阻断性问题。 交互流程验证三条路径均自洽:
设计合理的部分
需要处理的问题
安全设计说明(澄清)
总结无阻断性问题,建议合入前处理以下可操作项:
|
bf67a7a to
8aeb396
Compare
Add autologin support with dedicated ddm-autologin PAM service and nopasswdlogin group for passwordless login. 新增自动登录功能:提供独立的ddm-autologin PAM服务,并通过 nopasswdlogin用户组支持免密登录。重构Display登录流程,提取 startUserSession()复用会话启动逻辑,登录时根据配置决定直接 自动登录或显示登录界面。 PMS: BUG-294419 Log: 支持用户自动登录 Influence: 配置Autologin后可跳过登录界面直接进入桌面;nopasswdlogin组成员可免密登录。
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: glyvut, waterlovemelon The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Add autologin support with dedicated ddm-autologin PAM service and nopasswdlogin group for passwordless login.
新增自动登录功能:提供独立的ddm-autologin PAM服务,并通过
nopasswdlogin用户组支持免密登录。重构Display登录流程,提取
startUserSession()复用会话启动逻辑,登录时根据配置决定直接
自动登录或显示登录界面。
Log: 支持用户自动登录
Influence: 配置Autologin后可跳过登录界面直接进入桌面;nopasswdlogin组成员可免密登录。
Summary by Sourcery
Enable configurable automatic and passwordless user login while sharing the existing session startup flow.
New Features:
Enhancements:
Build: