Temporary fix for login screen by always showing the signin (instead of create account)

This commit is contained in:
Joseph Schorr 2016-05-16 14:12:15 -04:00
parent 97fd476abc
commit 7179f23568

View file

@ -21,15 +21,7 @@ angular.module('quay').directive('userSetup', function () {
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, Features) {
$scope.Config = Config;
$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.currentView = view;