Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

validate_user()

Description

Validate user - check we have a valid user based on SQL criteria e.g. session that is passed in as $user_select_sql
Will always return false if matches criteria but the user account is not approved or has expired

$user_select_sql example u.session=$variable.
Joins to usergroup table as g which can be used in criteria

Parameters

ColumnTypeDefaultDescription
$user_select_sql string SQL to check - usually session hash e.g. (u.session=$variable)
$getuserdata boolean true default true. Return user data as required by authenticate.php

Return

boolean|array

This article was last updated 15th July 2020 03:05 Europe/London time based on the source file dated 8th July 2020 11:40 Europe/London time.