You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: addCCIDUser.php
+9-7
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@
23
23
class AddCCIDUser extends Maintenance {
24
24
25
25
publicfunction__construct() {
26
-
parent::__construct();
27
-
$this->mDescription = "Create a new CCID user account.";
26
+
parent::__construct();
27
+
$this->mDescription = 'Create a new CCID user account.';
28
28
29
-
$this->addArg( "global", "CCID global identifier of new user" );
30
-
$this->addArg( "email", "CCID email of new user" );
29
+
$this->addArg( 'global', 'CCID global identifier of new user' );
30
+
$this->addArg( 'email', 'CCID email of new user' );
31
31
}
32
32
33
33
publicfunctionexecute() {
@@ -44,7 +44,7 @@ public function execute() {
44
44
$u = User::newFromName( $ccid_name );
45
45
// Create a new account if the user does not exists
46
46
if ($u->getID() != 0) {
47
-
$this->error("User already exists", true);
47
+
$this->error('User already exists', true);
48
48
exit(1);
49
49
} else {
50
50
//$nickname = $attr['nickname'];
@@ -53,7 +53,9 @@ public function execute() {
53
53
$u->setRealName($nickname);
54
54
$u->setEmail($casuid);
55
55
$u->confirmEmail();
56
-
$u->setPassword( md5($casuid.$CASAuth["PwdSecret"]) ); //PwdSecret is used to salt the casuid, which is then used to create an md5 hash which becomes the password
56
+
//PwdSecret is used to salt the casuid, which is then used to
0 commit comments