Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
smileNicky
jeeplatform
提交
712dfc4d
J
jeeplatform
项目概览
smileNicky
/
jeeplatform
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
5
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jeeplatform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
5
Issue
5
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
712dfc4d
编写于
5月 11, 2020
作者:
马
马增群
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
自定义Oauth2.0登录页面
上级
e552c393
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
code/jeeplatform-sso-oauth2/src/main/java/org/muses/jeeplatform/oauth/configuration/SecurityConfiguration.java
...eeplatform/oauth/configuration/SecurityConfiguration.java
+1
-1
code/jeeplatform-sso-oauth2/src/main/resources/templates/login.html
...atform-sso-oauth2/src/main/resources/templates/login.html
+4
-4
未找到文件。
code/jeeplatform-sso-oauth2/src/main/java/org/muses/jeeplatform/oauth/configuration/SecurityConfiguration.java
浏览文件 @
712dfc4d
...
...
@@ -76,7 +76,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
// 配置登录页并允许访问
.
formLogin
().
permitAll
()
.
formLogin
().
loginPage
(
"/login"
).
permitAll
()
// 配置Basic登录
//.and().httpBasic()
// 配置登出页面
...
...
code/jeeplatform-sso-oauth2/src/main/resources/templates/login.html
浏览文件 @
712dfc4d
...
...
@@ -13,13 +13,13 @@
</head>
<body
class=
"text-center"
>
<form
class=
"form-signin"
action=
"/login
"
method=
"post"
>
<
!--<img class="mb-4" th:src="@{static/asserts/img/bootstrap-solid.svg}" alt="" width="72" height="72" />--
>
<form
class=
"form-signin"
th:action=
"@{/login}
"
method=
"post"
>
<
img
class=
"mb-4"
th:src=
"@{asserts/img/bootstrap-solid.svg}"
alt=
""
width=
"72"
height=
"72"
/
>
<h1
class=
"h3 mb-3 font-weight-normal"
th:text=
"#{messages.tip}"
>
Oauth2.0 Login
</h1>
<label
class=
"sr-only"
th:text=
"#{messages.username}"
>
Username
</label>
<input
type=
"text"
class=
"form-control"
th:placeholder=
"#{messages.username}"
required=
""
autofocus=
""
value=
"nicky"
/>
<input
type=
"text"
class=
"form-control"
name=
"username"
th:placeholder=
"#{messages.username}"
required=
""
autofocus=
""
value=
"nicky"
/>
<label
class=
"sr-only"
th:text=
"#{messages.password} "
>
Password
</label>
<input
type=
"password"
class=
"form-control"
th:placeholder=
"#{messages.password}"
required=
""
value=
"123"
/>
<input
type=
"password"
class=
"form-control"
name=
"password"
th:placeholder=
"#{messages.password}"
required=
""
value=
"123"
/>
<div
class=
"checkbox mb-3"
>
<label>
<input
type=
"checkbox"
value=
"remember-me"
/>
remember me
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录