text: (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{vtpD:function(e,s,t){"use strict";let n,i;t.d(s,"b",function(){return n}),t.d(s,"c",function(){return i}),t.d(s,"a",function(){return o}),t("/oO5");class o{constructor(e,s,t){this.router=e,this.service=s,this.spinner=t,this.loginModel=new r,this.loginResponse=[]}ngOnInit(){}onLoggedin(e){this.spinner.show(),this.service.getHttpRequest("schoolLogin?username="+this.loginModel.username+"&password="+this.loginModel.password).subscribe(e=>{this.loginResponse=e,this.loginResponse.length>0?(n=e[0].SCH_NAME,i=e[0].SCH_CODE,localStorage.setItem("loggedIn",JSON.stringify(e)),localStorage.setItem("isLoggedin","true"),this.router.navigate(["/dashboard"]),this.spinner.hide()):(alert("Invalid Credentials"),this.spinner.hide())})}}class r{get getRole(){return this.role}set setRole(e){this.role=e}}}}]);