refactor(#I12FFA): 不允许 OAuth 认证登录时更新登录按钮的tooltip
#Comment comment #I12FFA 允许 OAuth 登录时默认使用 Gitee 认证 不允许时提示更改为点击按钮登录 #Issue link https://gitee.com/LongbowEnterprise/dashboard/issues?id=I12FFA
This commit is contained in:
parent
b386af1ccc
commit
3f997c5616
|
@ -102,7 +102,7 @@
|
|||
<a id="loginType" data-value="username" href="#" class="">短信验证登陆</a>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-lg btn-login btn-block" data-toggle="tooltip" title="不填写密码默认使用 Gitee 认证" type="submit">登 录</button>
|
||||
<button class="btn btn-lg btn-login btn-block" data-oauth="@Model.AllowOAuth" data-toggle="tooltip" title="不填写密码默认使用 Gitee 认证" type="submit">登 录</button>
|
||||
<div class="d-flex justify-content-between">
|
||||
<a href="#" data-method="register">申请账号</a>
|
||||
<a href="#" data-method="forgot">忘记密码</a>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
$(function () {
|
||||
var $imgUrl = $('#imgUrl');
|
||||
$('[data-oauth="False"]').attr("data-original-title", "点击登录系统");
|
||||
$(".container").autoCenter();
|
||||
|
||||
$("a[data-method]").on('click', function () {
|
||||
|
|
Loading…
Reference in New Issue