Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
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
Hide 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