Skip to content

Commit eda2325

Browse files
committed
Merge branch 'master' of github.com:grafana/grafana
2 parents 257b824 + b469904 commit eda2325

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

public/app/core/controllers/login_ctrl.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function (angular, coreModule, config) {
1717

1818
$scope.googleAuthEnabled = config.googleAuthEnabled;
1919
$scope.githubAuthEnabled = config.githubAuthEnabled;
20+
$scope.oauthEnabled = config.githubAuthEnabled || config.googleAuthEnabled;
2021
$scope.disableUserSignUp = config.disableUserSignUp;
2122
$scope.loginHint = config.loginHint;
2223

@@ -84,7 +85,5 @@ function (angular, coreModule, config) {
8485
};
8586

8687
$scope.init();
87-
8888
});
89-
9089
});

public/app/partials/login.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@
6363
</div>
6464
</form>
6565

66-
<div class="clearfix"></div>
67-
68-
<div class="text-center login-divider">
66+
<div class="text-center login-divider" ng-if="oauthEnabled">
6967
<div class="login-divider-line">
7068
<span class="login-divider-text">
7169
Or login with
@@ -75,7 +73,7 @@
7573

7674
<div class="clearfix"></div>
7775

78-
<div class="login-oauth text-center">
76+
<div class="login-oauth text-center" ng-if="oauthEnabled">
7977
<a class="btn btn-large btn-google" href="login/google" target="_self" ng-if="googleAuthEnabled">
8078
<i class="fa fa-google"></i>
8179
with Google
@@ -86,6 +84,8 @@
8684
</a>
8785
</div>
8886

87+
<div class="clearfix"></div>
88+
8989
<div class="text-center password-recovery">
9090
<div class="text-center">
9191
<a href="user/password/send-reset-email">

public/less/login.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
}
8989

9090
.login-oauth {
91+
margin-bottom: 15px;
92+
9193
.btn {
9294
margin: 5px;
9395
}
@@ -104,7 +106,7 @@
104106

105107
.password-recovery {
106108
background: @grafanaTargetBackground;
107-
margin-top: 30px;
109+
margin-top: 10px;
108110
padding: 10px;
109111
a {
110112
color: @grayLight;

0 commit comments

Comments
 (0)