Subversion Repositories oidplus

Rev

Rev 1119 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1119 Rev 1130
Line 22... Line 22...
22
// phpcs:disable PSR1.Files.SideEffects
22
// phpcs:disable PSR1.Files.SideEffects
23
\defined('INSIDE_OIDPLUS') or die;
23
\defined('INSIDE_OIDPLUS') or die;
24
// phpcs:enable PSR1.Files.SideEffects
24
// phpcs:enable PSR1.Files.SideEffects
25
 
25
 
26
class OIDplusRA extends OIDplusBaseClass {
26
class OIDplusRA extends OIDplusBaseClass {
-
 
27
 
-
 
28
        /**
-
 
29
         * @var string
-
 
30
         */
27
        private $email = null;
31
        private $email = null;
28
 
32
 
29
        /**
33
        /**
30
         * @param string $email
34
         * @param string $email
31
         */
35
         */
Line 96... Line 100...
96
        /**
100
        /**
97
         * @param string|null $new_password
101
         * @param string|null $new_password
98
         * @return void
102
         * @return void
99
         * @throws OIDplusException
103
         * @throws OIDplusException
100
         */
104
         */
101
        public function register_ra(/*?string*/ $new_password) {
105
        public function register_ra(string $new_password=null) {
102
                if (is_null($new_password)) {
106
                if (is_null($new_password)) {
103
                        // Invalid password (used for LDAP/OAuth)
107
                        // Invalid password (used for LDAP/OAuth)
104
                        $calc_authkey = '';
108
                        $calc_authkey = '';
105
                } else {
109
                } else {
106
                        $authInfo = OIDplus::authUtils()->raGeneratePassword($new_password);
110
                        $authInfo = OIDplus::authUtils()->raGeneratePassword($new_password);