Skip to content

Instantly share code, notes, and snippets.

@geykel

geykel/auth2.ts Secret

Created March 13, 2017 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geykel/07922441797b91121308475e4b6955fc to your computer and use it in GitHub Desktop.
Save geykel/07922441797b91121308475e4b6955fc to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import 'rxjs/add/operator/map';
@Injectable()
export class Auth {
constructor() { }
iniciarSesion(credenciales): boolean {
if (credenciales.usuario === 'user' && credenciales.contrasena === '123') {
return true;
} else {
return false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment