SessionNt.php (mrbs-1.9.4) | : | SessionNt.php (mrbs-1.10.0) | ||
---|---|---|---|---|
<?php | <?php | |||
namespace MRBS\Session; | namespace MRBS\Session; | |||
use MRBS\User; | ||||
/* | /* | |||
* Session management scheme that uses Windows NT domain users and Internet | * Session management scheme that uses Windows NT domain users and Internet | |||
* Information Server as the source for user authentication. | * Information Server as the source for user authentication. | |||
* | * | |||
* To use this authentication scheme set the following | * To use this authentication scheme set the following | |||
* things in config.inc.php: | * things in config.inc.php: | |||
* | * | |||
* $auth['type'] = 'none'; | * $auth['type'] = 'none'; | |||
* $auth['session'] = 'nt'; | * $auth['session'] = 'nt'; | |||
* | * | |||
skipping to change at line 26 | skipping to change at line 28 | |||
* $auth['admin'][] = 'nt_username1'; | * $auth['admin'][] = 'nt_username1'; | |||
* $auth['admin'][] = 'nt_username2'; | * $auth['admin'][] = 'nt_username2'; | |||
* | * | |||
* See AUTHENTICATION for more information. | * See AUTHENTICATION for more information. | |||
*/ | */ | |||
class SessionNt extends SessionWithoutLogin | class SessionNt extends SessionWithoutLogin | |||
{ | { | |||
// For this scheme no need to prompt for a name - NT User always there. | // For this scheme no need to prompt for a name - NT User always there. | |||
public function getCurrentUser() | public function getCurrentUser() : ?User | |||
{ | { | |||
return \MRBS\auth()->getUser(get_current_user()); | return \MRBS\auth()->getUser(get_current_user()); | |||
} | } | |||
} | } | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added |