-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcore_user_create_users.php
More file actions
executable file
·85 lines (78 loc) · 1.97 KB
/
Copy pathcore_user_create_users.php
File metadata and controls
executable file
·85 lines (78 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
require_once('Utils.php');
$users = array(
array (
'username' => 'ks-th-2020-fe-tech-05423',
'password' => '9538226487',
'firstname' => 'Dinesh',
'lastname' => 'Vemula',
'email' => 'dineshvcse07@gmail.com',
'auth' => 'manual',
'phone1' => '9538226487',
'customfields' =>
array (
0 =>
array (
'type' => 'user_type',
'value' => 'teacher',
),
),
),
/*
array(
'username' => 'stud-viii-a-01',
'password' => 'frappe',
'firstname' => 'STUDENT-VIII-A',
'lastname' => '01',
'email' => 'stud-viii-a-01@example.com',
'auth' => 'manual',
'phone1' => '0123456789',
'customfields' => array(
array('type' => 'middle_name', 'value' => "M" ),
array('type' => 'status', 'value' => "Active" ),
),
),
array(
'username' => 'stud-viii-a-02',
'password' => 'frappe',
'firstname' => 'STUDENT-VIII-A',
'lastname' => '02',
'email' => 'stud-viii-a-02@example.com',
'auth' => 'manual',
'phone1' => '0123456789',
'customfields' => array(
array('type' => 'middle_name', 'value' => "M" ),
array('type' => 'status', 'value' => "Active" ),
),
),
array(
'username' => 'teach-middle-eng-01',
'password' => 'frappe',
'firstname' => 'TEACHER MIDDLE ENGLISH',
'lastname' => '01',
'email' => 'teach-middle-eng-01@example.com',
'auth' => 'manual',
'phone1' => '0123456789',
'customfields' => array(
array('type' => 'middle_name', 'value' => "M" ),
array('type' => 'status', 'value' => "Active" ),
),
),
array(
'username' => 'teach-middle-math-01',
'password' => 'frappe',
'firstname' => 'TEACHER MIDDLE MATH',
'lastname' => '01',
'email' => 'teach-middle-math-01@example.com',
'auth' => 'manual',
'phone1' => '0123456789',
'customfields' => array(
array('type' => 'middle_name', 'value' => "M" ),
array('type' => 'status', 'value' => "Active" ),
),
),
*/
);
$result = create_users($users);
var_dump($result);
?>