mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
login force full page reload
This commit is contained in:
parent
cfabccc5f2
commit
47f226be3b
@ -37,7 +37,7 @@ function (angular) {
|
|||||||
|
|
||||||
$http.post('/login', $scope.loginModel).then(function(results) {
|
$http.post('/login', $scope.loginModel).then(function(results) {
|
||||||
$scope.appEvent('logged-in', results.data.user);
|
$scope.appEvent('logged-in', results.data.user);
|
||||||
$location.path('/');
|
window.location.href = '/';
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if (err.status === 401) {
|
if (err.status === 401) {
|
||||||
$scope.loginError = "Username or password is incorrect";
|
$scope.loginError = "Username or password is incorrect";
|
||||||
|
Loading…
Reference in New Issue
Block a user