Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Legacy Login
<!--area de registro y de atencion -->
<div>
<div class="col-lg-6">
<div class="alert alert-success" *ngIf="status_backend =='success'"> bienvenido
</div>
<div class="alert alert-danger" *ngIf="status_backend == 'failed'"> No es posible iniciar secion
</div>
<h1> Login </h1>
<form #registerForm="ngForm" (ngSubmit)="onLogin()" class="col-lg-10" >
<p>
<label> Correo Electronico </label>
<input type="email" name="correo_electronico" #correo_elecronico="ngModel" [(ngModel)]="user.correo_electronico" class="form-control" required/>
<span *ngIf="!correo_elecronico.valid && correo_elecronico.touched">
El correo Electronico es obligatorio
</span>
</p>
<p>
<label for=""> Contraseña </label>
<input type="password" name="contrasenia" #contrasenia="ngModel" [(ngModel)]="user.contrasenia" class="form-control" required/>
<span *ngIf="!contrasenia.valid && contrasenia.touched">
El correo Electronico es obligatorio
</span>
</p>
<input type="submit" value="enviar" class="btn btn-primary" [disabled]="!registerForm.form.valid"/>
</form>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment