Dash page logou
This commit is contained in:
@@ -57,16 +57,23 @@ long providers_call(CVars in, CVars &out) {
|
||||
long provider_login(CVars in, CVars &out) {
|
||||
|
||||
long ret = 0;
|
||||
try{
|
||||
REQ_STRING(in, "username", 2, 49, "(.*)");
|
||||
REQ_STRING(in, "pass", 2, 49, "(.*)");
|
||||
|
||||
|
||||
if ( load_db_record(out, "SELECT p.name AS practice_name,u.*,u.id AS user_id FROM practice_users u LEFT JOIN practice p ON p.id = u.practice_id WHERE u.id = 1 ") > 0 ){
|
||||
ret = PHP_LOGIN_OK;
|
||||
}
|
||||
|
||||
|
||||
} catch (bad_parameter) {
|
||||
logfmt(logINFO, "ERROR CALL long provider_login(CVars in, CVars &out)");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return ret;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user