Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b7afeeb8
authored
Jun 17, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
readme
1 parent
336c590b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
README.rst
opensipkd/base/views/register.py
README.rst
View file @
b7afeeb
...
@@ -168,20 +168,25 @@ Tambahkan blok berikut ini dibawah ini file
...
@@ -168,20 +168,25 @@ Tambahkan blok berikut ini dibawah ini file
```
```
## Google Integrated
## Google Integrated
dan Custom Register Form
Aplikasi sudah bisa terintegrsi dengan google oauth2
Aplikasi sudah bisa terintegrsi dengan google oauth2
# Setting Configurasi
# Setting Configurasi
```
```
allow_register = True
allow_register = True
google-signin-client-id = id oauth2 client dari google
google-signin-client-id = id oauth2 client dari google
register_form = # nama form buat registrasi default /register
```
```
# RML Reporting
# RML Reporting
Untuk aktivasi harus terdapat konfigurasi berikut ini
Untuk aktivasi harus terdapat konfigurasi berikut ini
# Setting Configurasi
# Setting Configurasi
```
```
report_img =
"fisik path
opensipkd_base:static/img"
report_img =
# fisik path default "
opensipkd_base:static/img"
```
```
Install :
```
$pip install z3c.rml
```
opensipkd/base/views/register.py
View file @
b7afeeb
...
@@ -399,8 +399,6 @@ class RegistrasiAdd(BaseView):
...
@@ -399,8 +399,6 @@ class RegistrasiAdd(BaseView):
def
view_add
(
self
):
def
view_add
(
self
):
request
=
self
.
req
request
=
self
.
req
if
request
.
user
:
if
request
.
user
:
# partner = Partner.query_user_id(request.user.id).first()
# if partner:
return
HTTPFound
(
location
=
request
.
route_url
(
"profile"
))
return
HTTPFound
(
location
=
request
.
route_url
(
"profile"
))
form
=
get_form
(
request
,
RegSchema
,
reg_buttons
())
form
=
get_form
(
request
,
RegSchema
,
reg_buttons
())
...
@@ -419,6 +417,7 @@ class RegistrasiAdd(BaseView):
...
@@ -419,6 +417,7 @@ class RegistrasiAdd(BaseView):
return
dict
(
form
=
form
.
render
(),
captcha
=
captcha
,
scripts
=
""
)
return
dict
(
form
=
form
.
render
(),
captcha
=
captcha
,
scripts
=
""
)
values
=
dict
(
controls
)
values
=
dict
(
controls
)
path
=
get_params
(
'reg_folder'
,
'/tmp/registrasi'
)
path
=
get_params
(
'reg_folder'
,
'/tmp/registrasi'
)
if
not
os
.
path
.
exists
(
path
):
if
not
os
.
path
.
exists
(
path
):
os
.
makedirs
(
path
)
os
.
makedirs
(
path
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment