更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -33,21 +33,11 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- 登录回跳中转:仅做 code 转发,画面保持白底 + 居中 loading -->
|
||||
<div class="loading-wrap">
|
||||
<img class="loading-gif" src="/loading.gif" alt="登录中,请稍后…" />
|
||||
<p class="loading-text">登录中,请稍后…</p>
|
||||
</div>
|
||||
<script>
|
||||
/**
|
||||
* 统一认证中心回调中转页。
|
||||
*
|
||||
* 为什么不直接用 hash 路由 /#/auth/callback 作为 redirect_uri:
|
||||
* URL 中的 "#" 会被浏览器当作片段标识符,其后的内容不会作为查询参数发送到服务端,
|
||||
* 导致认证中心收到的 redirect_uri 被截断(只剩根路径),换不到授权码。
|
||||
*
|
||||
* 因此用一个不带 # 的静态页接收 code,再转发给 SPA 的 hash 路由处理。
|
||||
*/
|
||||
(function () {
|
||||
var query = window.location.search || '';
|
||||
var target = window.location.origin + '/#/auth/callback' + query;
|
||||
|
||||
Reference in new issue
Block a user