Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $response = $modx->runProcessor('security/login', array(
- 'username' => 'login',
- 'password' => 'pass'
- ));
- if ($response->isError()) {
- exit;
- }
- $user=$modx->user->toArray();
- if(!$user['active']){
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement