Merge pull request #1466 from coreos-inc/fixlogin
Temporary fix for login screen by always showing the signin (instead …
This commit is contained in:
commit
d894e01ba1
1 changed files with 1 additions and 9 deletions
|
@ -21,15 +21,7 @@ angular.module('quay').directive('userSetup', function () {
|
||||||
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, Features) {
|
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, Features) {
|
||||||
$scope.Config = Config;
|
$scope.Config = Config;
|
||||||
$scope.Features = Features;
|
$scope.Features = Features;
|
||||||
$scope.currentView = 'createAccount';
|
|
||||||
|
|
||||||
var hasSignedIn = function() {
|
|
||||||
return UserService.hasEverLoggedIn() || Config.AUTHENTICATION_TYPE != 'Database';
|
|
||||||
};
|
|
||||||
|
|
||||||
if (hasSignedIn()) {
|
|
||||||
$scope.currentView = 'signin';
|
$scope.currentView = 'signin';
|
||||||
}
|
|
||||||
|
|
||||||
$scope.setView = function(view) {
|
$scope.setView = function(view) {
|
||||||
$scope.currentView = view;
|
$scope.currentView = view;
|
||||||
|
|
Reference in a new issue