mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
fix bug of profile loading
This commit is contained in:
parent
9d7d809515
commit
a175a83f34
7 changed files with 22 additions and 26 deletions
|
@ -11,6 +11,4 @@ import java.io.Serializable;
|
|||
*/
|
||||
public class RoleDTO extends NamedDTO implements Serializable {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -58,4 +58,5 @@ public class Role implements Serializable {
|
|||
public void setUsers(Set<User> users) {
|
||||
this.users = users;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -46,6 +46,8 @@ spring.security.oauth2.client.registration.google.client-secret=${OAUTH2_GOOGLE_
|
|||
|
||||
#spring.security.oauth2.client.registration.github.client-id=${OAUTH2_GITHUB_CLIENT_ID}
|
||||
#spring.security.oauth2.client.registration.github.client-secret=${OAUTH2_GITHUB_CLIENT_SECRET}
|
||||
spring.security.oauth2.client.registration.github.client-id=d3e47fc2ddd966fa4352
|
||||
spring.security.oauth2.client.registration.github.client-secret=3bc0f6b8332f93076354c2a5bada2f5a05aea60d
|
||||
|
||||
|
||||
spring.security.oauth2.client.registration.facebook.client-id=121189305185277
|
||||
|
|
|
@ -27,14 +27,10 @@
|
|||
|
||||
<h2 style="text-align:center">Login with Social Media</h2>
|
||||
|
||||
<div class="row col-md-12">
|
||||
<div class="col-md-6 offset-md-3" th:each="url : ${urls}" >
|
||||
<div class="col-md-12 " th:each="url : ${urls}" style="text-align:center">
|
||||
<a th:if="${url.key == 'Google'}" th:href="${url.value}" class="btn btn-bloc" style="background-color: #dd4b39;color: white">
|
||||
<i class="fa fa-google fa-fw"></i> Login with Google
|
||||
</a>
|
||||
<a th:if="${url.key == 'Twitter'}" th:href="${url.value}" class="btn btn-bloc" style="background-color: #55ACEE;color: white">
|
||||
<i class="fa fa-twitter fa-fw"></i> Login with Twitter
|
||||
</a>
|
||||
<a th:if="${url.key == 'GitHub'}" th:href="${url.value}" class="btn btn-bloc" style="background-color: white;color: black">
|
||||
<i class="fa fa-github fa-fw"></i> Login with Github
|
||||
</a>
|
||||
|
@ -43,7 +39,6 @@
|
|||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Reference in a new issue