# admin_logon

class admin_logon

## Properties

protected | $username |  |
protected | $password |  |
protected | $auth_method |  |
protected | $user_info |  |
| $real_name |  |
| $ip_check |  |
| $ip_allowed |  |
| $errors |  |

## Methods

void
__construct(string $str_username, string $str_password, string $str_auth_method = 'native')

Class Constructor

void
adminValid(object $obj_db)

Method to check user validity

setupSession($obj_db)

No description

setUserInfo($user_info)

No description

getUserInfo($key = null)

No description

bool
ldapLogin()

LDAP/Active directory login

bool
nativeLogin()

Native database checking login method

bool
nativeLoginMd5()

Native database checking login method with md5 encryption

bool
changePasswd($obj_db, $new_passwd)

Update password if still use md5 encryption

## Details

###
at line 52
`void __construct(string $str_username, string $str_password, string $str_auth_method = 'native')`

Class Constructor

#### Parameters

string | $str_username |
string | $str_password |
string | $str_auth_method |

#### Return Value

void |

###
at line 65
`void adminValid(object $obj_db)`

Method to check user validity

#### Parameters

object | $obj_db |

#### Return Value

void |

###
at line 89
`setupSession($obj_db)`

No description

#### Parameters

| $obj_db |

###
at line 162
`setUserInfo($user_info)`

No description

#### Parameters

| $user_info |

###
at line 167
`getUserInfo($key = null)`

No description

#### Parameters

| $key |

###
at line 179
`protected bool ldapLogin()`

LDAP/Active directory login

#### Return Value

bool |

###
at line 250
`protected bool nativeLogin()`

Native database checking login method

#### Return Value

bool |

###
at line 299
`protected bool nativeLoginMd5()`

Native database checking login method with md5 encryption

#### Return Value

bool |

###
at line 325
`bool changePasswd($obj_db, $new_passwd)`

Update password if still use md5 encryption

#### Parameters

| $obj_db |
| $new_passwd |

#### Return Value

bool |