Add fallback authentication through Kerberos
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-09-22 17:02:30 +02:00
commit 9807eeec1a
8 changed files with 132 additions and 5 deletions

View file

@ -259,8 +259,12 @@ angular.module("AtsebaytApp")
$location.url("/");
}, function(response) {
$scope.pleaseWait = false;
if (response.data && response.data.errmsg)
alert(response.data.errmsg);
if (response.data)
$scope.addToast({
variant: "danger",
title: "Connexion impossible",
msg: (response.data ? response.data.errmsg : "Impossible de contacter le serveur"),
});
});
}
})

View file

@ -3,13 +3,13 @@
<h2>Accès à votre compte</h2>
<div class="form-group">
<label for="login">CRI login</label>
<input class="form-control" id="login" ng-model="auth.username" placeholder="Entrer votre login" autofocus disabled>
<input class="form-control" id="login" ng-model="auth.username" placeholder="Entrer votre login" autofocus>
</div>
<div class="form-group">
<label for="password">Mot de passe</label>
<input type="password" class="form-control" id="password" ng-model="auth.password" placeholder="Mot de passe" disabled>
<input type="password" class="form-control" id="password" ng-model="auth.password" placeholder="Mot de passe">
</div>
<button type="submit" class="btn btn-secondary disabled" disabled>
<button type="submit" class="btn btn-secondary">
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" ng-show="pleaseWait"></span>
Me connecter
</button>