用户登陆 #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
提供一个接口
/authenticate,通过明文传输username,password,如果登陆成功sign一个JWT。JWT Secret在程序每一次启动时都会random generate一个。
数据库存储方面,在
metas的table中以userinfo_username,userinfo_password, 其中密码信息都通过PBKDF2加密 + 2000次加密存储。现在以
ah123456分别作为默认的用户名 + 密码。后续会提供修改账号密码的接口