mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-12-26 14:15:41 +08:00
起草[记住我]模式开发文档
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
- [花式token](/use/token-style)
|
||||
- [框架配置](/use/config)
|
||||
- [会话治理](/use/search-session)
|
||||
<!-- - [记住我模式](/use/remember-me) -->
|
||||
|
||||
- **进阶**
|
||||
- [集群、分布式](/senior/dcs)
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
可能是404了,SpringBoot环境下如果访问接口404后,会被重定向到`/error`,然后被再次拦截,如果是其它原因,欢迎加群反馈
|
||||
|
||||
|
||||
|
||||
### 权限可以做成动态的吗?
|
||||
权限本来就是动态的,只有jwt那种模式才是非动态的
|
||||
|
||||
@@ -71,9 +70,14 @@
|
||||
步骤:先在配置文件里将`tokenSessionCheckLogin`配置为`false`,然后通过`StpUtil.getTokenSession()`获取Session
|
||||
|
||||
|
||||
### 我只使用header来传输token,还需要打开Cookie模式吗?
|
||||
不需要,如果只使用header来传输token,可以在配置文件关闭Cookie模式,例:`isReadCookie=false`
|
||||
|
||||
|
||||
### 还是有不明白到的地方?
|
||||
请在`github`提交`issues`,或者加入qq群交流(群链接在[首页](README?id=交流群))
|
||||
|
||||
|
||||
### 我能为这个框架贡献代码吗?
|
||||
**可以**,请参照首页的提交pr步骤 ,[贡献代码](README?id=贡献代码)
|
||||
**可以**,请参照首页的提交pr步骤 ,[贡献代码](README?id=贡献代码)
|
||||
|
||||
|
||||
BIN
sa-token-doc/doc/static/login-view.png
vendored
Normal file
BIN
sa-token-doc/doc/static/login-view.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
19
sa-token-doc/doc/use/remember-me.md
Normal file
19
sa-token-doc/doc/use/remember-me.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# [记住我]模式
|
||||
---
|
||||
|
||||
如下图所示,一般网站的登录界面都会有一个 [ 记住我 ] 按钮,当你勾选它后,即时你关闭浏览器再次打开网站,也依然会处于登录状态,无须重复验证密码
|
||||
|
||||

|
||||
|
||||
那么在sa-token中,如何做到 [ 记住我 ] 功能呢?
|
||||
|
||||
|
||||
### 在sa-token中实现记住我功能
|
||||
|
||||
sa-token的登录授权,默认就是`记住我`模式,为了实现`非记住我`模式, 你需要做一些适配
|
||||
|
||||
要
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user