Merge pull request #1821 from normanjaeckel/LoginView

Fixed alerts on login form.
This commit is contained in:
Oskar Hahn 2016-01-10 00:59:03 +01:00
commit 4ee2b85b76

View File

@ -846,6 +846,7 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
$scope.guestAllowed = $stateParams.guest_enabled;
// login
$scope.login = function () {
$scope.alerts = [];
$http.post(
'/users/login/',
{'username': $scope.username, 'password': $scope.password}