用户登陆 #1

Closed
opened 2026-06-07 20:49:25 +08:00 by patrick · 1 comment
Owner

提供一个接口/authenticate,通过明文传输username,password,如果登陆成功sign一个JWT。

JWT Secret在程序每一次启动时都会random generate一个。

数据库存储方面,在metas的table中以userinfo_username, userinfo_password, 其中密码信息都通过PBKDF2加密 + 2000次加密存储。

提供一个接口`/authenticate`,通过明文传输username,password,如果登陆成功sign一个JWT。 JWT Secret在程序每一次启动时都会random generate一个。 数据库存储方面,在`metas`的table中以`userinfo_username`, `userinfo_password`, 其中密码信息都通过PBKDF2加密 + 2000次加密存储。
Author
Owner

现在以ah 123456分别作为默认的用户名 + 密码。后续会提供修改账号密码的接口

现在以`ah` `123456`分别作为默认的用户名 + 密码。后续会提供修改账号密码的接口
patrick added this to the Version 1.0 project 2026-06-07 21:30:04 +08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: patrick/anyhealth#1