optttt/dsh-auth ↗★ 0

@tyler9061/dsh-auth

为 Web 界面提供登录保护、空闲登出与密码重置等认证功能。 适合需为 Web 界面加登录保护的用户;支持设置界面与密码重置。

包名
@tyler9061/dsh-auth
兼容性
待验证
版本
0.1.7
许可证
MIT
最近更新
2026年8月20日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:optttt/dsh-auth

Usage

  • On first start the server console prints the initial username and password (default username admin). Visiting the web UI redirects to /login.
  • Settings > Auth: change username / password, idle logout minutes, session max age (minutes), single sign-on, and sign out.
  • Single sign-on: when enabled, every new login invalidates all other sessions. Kicked clients land on the login page with a warning — "if this was not you, change the password immediately".
  • Forgot credentials: dsh web p prints a new random password (or dsh web p mypass); dsh web u newname changes the username (3-32 chars, letters/digits/_``-).
  • Login history: Settings > Auth lists recent successful logins (IP, time, GeoIP location); the last 50 are kept.