3 /* Copyright (C) 2006 ReiniUrban
4 * This file is part of PhpWiki. Terms and Conditions see LICENSE. (GPL2)
7 class _EMailConfirmPassUser
10 * Unconfirmed users have ANON access,
11 * confirmed users are equal to passusers WIKIAUTH_USER.
13 * Users give their email at registration, phpwiki sends a link per email,
14 * user clicks on url link to verify, user is confirmed.
16 * Preferences are handled in _PassUser
19 // This can only be called from _PassUser, because the parent class
20 // sets the pref methods, before this class is initialized.
21 function _EMailConfirmPassUser($UserName='', $prefs=false, $file='') {
22 if (!$this->_prefs and isa($this, "_EMailPassUser")) {
23 if ($prefs) $this->_prefs = $prefs;
24 if (!isset($this->_prefs->_method))
25 _PassUser::_PassUser($UserName);
27 $this->_userid = $UserName;
31 function userExists() {
32 if (!$this->isValidName($this->_userid)) {
33 return $this->_tryNextUser();
35 $this->_authmethod = 'EMailConfirm';
36 // check the prefs for emailVerified
37 if ($this->_prefs->get('emailVerified'))
39 return $this->_tryNextUser();
47 // c-hanging-comment-ender-p: nil
48 // indent-tabs-mode: nil