Forums | Mahara Community

Support /
Defaults (User Creation)


anonymous profile picture
Account deleted
Posts: 6

29 April 2010, 3:28

Hi,

How do I set up defaulst for user creation - specifically

Turn off - "Force Password Change"

Change the default institution

Many Thanks

 

steve P's profile picture
Posts: 122

02 May 2010, 20:12

Which method are you using to create the users?

To turn off 'force password change' when adding a single user, look for:

// Create user
    $user = (object)array(
        'authinstance'   => $values['authinstance'],
        'username'       => $values['username'],
        'firstname'      => ($values['firstname']) ? $values['firstname'] : 'Imported',
        'lastname'       => ($values['lastname']) ? $values['lastname'] : 'User',
        'email'          => $values['email'],
        'password'       => $values['password'],
        'quota'          => $values['quota'],
        'passwordchange' => 1,

in /admin/users/add.php and change the '1' to a '0'

 

2 results