protected override string OnWizardNext() { UserDataService uds = new UserDataService(); if (!ValidateInput()) { return("LoginPage"); } uds.Url = String.Format("{0}/userdatasvc.asmx", txtURL.Text); Cursor.Current = Cursors.WaitCursor; try { ((WizardMain)Parent).Ticket = uds.Authenticate(txtUsername.Text, txtPassword.Text); ((WizardMain)Parent).Url = txtURL.Text; } catch (Exception er) { MessageBox.Show("Error during Authentication: " + er.Message, "Error connecting to FrontDesk", MessageBoxButtons.OK, MessageBoxIcon.Error); Cursor.Current = Cursors.Arrow; return("LoginPage"); } Cursor.Current = Cursors.Arrow; return(base.OnWizardNext()); }
/* * Please view method description in UserBusinessInterface */ public User AuthenticateUser(Credentials credentials) { return(service.Authenticate(credentials)); }