//ajax call to check if credentials are valid
        public string jsonCredentialsCheck(string pstrUsername, string pstrPassword)
        {
            PerformLogin LoginObj = new PerformLogin();
            string       result   = LoginObj.mCredentialCheck(pstrUsername, pstrPassword);

            return(result);
        }
        public JsonResult jsonGetUser()
        {
            PerformLogin   LoginUserObj = new PerformLogin();
            List <DBLogin> ModelLogin   = LoginUserObj.mRetrieveLoginDetails();

            return(Json(ModelLogin, JsonRequestBehavior.AllowGet));
        }
        public string jsonChangeSettings(string pstrUsername, string pstrOldPassword, string pstrNewPassword)
        {
            PerformLogin LoginSettingsObj = new PerformLogin();
            string       resultSetting    = LoginSettingsObj.mChangeSettings(pstrUsername, pstrOldPassword, pstrNewPassword);

            return(resultSetting);
        }
Exemplo n.º 4
0
 protected virtual void OnPerformLogin(PerformLoginEventArgs e)
 {
     PerformLogin?.Invoke(this, e);
 }