add id for tag html login

This commit is contained in:
Valentin CZERYBA 2022-07-20 20:24:05 +02:00
parent 9c3d4abe8b
commit eb36c8d386
3 changed files with 11 additions and 5 deletions

View File

@ -15,6 +15,8 @@
<!-- Bootstrap core CSS --> <!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> <link href="css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="js/config.js"></script>
<script src="js/login.js"></script>
<!-- Favicons --> <!-- Favicons -->
<link rel="apple-touch-icon" href="https://getbootstrap.com/docs/5.1/assets/img/favicons/apple-touch-icon.png" sizes="180x180"> <link rel="apple-touch-icon" href="https://getbootstrap.com/docs/5.1/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="https://getbootstrap.com/docs/5.1/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png"> <link rel="icon" href="https://getbootstrap.com/docs/5.1/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
@ -54,10 +56,10 @@
<div class="form-floating"> <div class="form-floating">
<input type="email" class="form-control" id="floatingInput" placeholder="name@example.com"> <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
<label for="floatingInput">Email address</label> <label for="emailInput">Email address</label>
</div> </div>
<div class="form-floating"> <div class="form-floating">
<input type="password" class="form-control" id="floatingPassword" placeholder="Password"> <input type="password" class="form-control" id="floatingPassword" placeholder="Mot de passe">
<label for="floatingPassword">Password</label> <label for="floatingPassword">Password</label>
</div> </div>
@ -66,7 +68,7 @@
<input type="checkbox" value="remember-me"> Remember me <input type="checkbox" value="remember-me"> Remember me
</label> </label>
</div> </div>
<button class="w-100 btn btn-lg btn-primary" type="submit">Sign in</button> <button class="w-100 btn btn-lg btn-primary" id="loginButton" type="submit">Sign in</button>
<p class="mt-5 mb-3 text-muted">© 20172021</p> <p class="mt-5 mb-3 text-muted">© 20172021</p>
</form> </form>
</main> </main>

View File

@ -1 +1 @@
const instance = axios.create({ baseURL: 'http://localhost:8080/api'}); const instance = axios.create({ baseURL: 'http://localhost:8083/api'});

View File

@ -1 +1,5 @@
instance.get("token", { auth:{username:"peter93", password:"toto"}}).then(function(response) { console.log(response) }); instance.get("token", { withCredentials: true})
.then(function(response) { console.log(response) })
.catch(function(error){
});