Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.7k views
in Q2A Core by

i want to logon using a simple php page, not the 'single login' functionality

i have a <form> and the variables to submit: $emailhandle and $password

Is there a function to accept these and check if valid and then direct to the main QtoA page?

e.g.   something like:

if   qa_check_logon_details( $emailhandle,$password, $remember) == true

{

require 'qa-include/qa-index.php'

}

else {

back to logon page

}

 

(qa_get_logged_in_userid()===null)  is useful ot check if user is already logged in, but i need the step before this to actually login.

thanks

1 Answer

+1 vote
by

Take a look at qa-page-login.php to see what's retrieved and checked.

...