Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
e3f117a8
Commit
e3f117a8
authored
Dec 08, 2016
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_ung_theme: migrate to ERP5 Login authentication.
parent
f68df8ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ERPSite_createUNGUser.py
.../portal_skins/erp5_web_ung_theme/ERPSite_createUNGUser.py
+5
-2
No files found.
bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ERPSite_createUNGUser.py
View file @
e3f117a8
...
@@ -11,14 +11,17 @@ person = portal.person_module.newContent(portal_type="Person")
...
@@ -11,14 +11,17 @@ person = portal.person_module.newContent(portal_type="Person")
person
.
edit
(
first_name
=
form
.
get
(
"firstname"
),
person
.
edit
(
first_name
=
form
.
get
(
"firstname"
),
last_name
=
form
.
get
(
"lastname"
),
last_name
=
form
.
get
(
"lastname"
),
email_text
=
form
.
get
(
"email"
),
email_text
=
form
.
get
(
"email"
),
password
=
form
.
get
(
"password"
),
reference
=
login
,
# BBB
reference
=
login
,
)
)
assignment
=
person
.
newContent
(
portal_type
=
'Assignment'
)
assignment
=
person
.
newContent
(
portal_type
=
'Assignment'
)
assignment
.
setFunction
(
"ung_user"
)
assignment
.
setFunction
(
"ung_user"
)
assignment
.
open
()
assignment
.
open
()
login
=
person
.
newContent
(
portal_type
=
'ERP5 Login'
,
password
=
form
.
get
(
"password"
),
reference
=
login
)
login
.
validate
()
person
.
validate
()
person
.
validate
()
return
json
.
dumps
(
True
)
return
json
.
dumps
(
True
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment