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 3bd3d623
authored
Sep 28, 2021
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
validasi NIK 16
1 parent
ba3cbc53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/base/views/user_rpc.py
opensipkd/base/views/user_rpc.py
View file @
3bd3d62
...
@@ -104,7 +104,7 @@ def validasi_data(dat):
...
@@ -104,7 +104,7 @@ def validasi_data(dat):
nik
=
""
nik
=
""
if
'nik'
in
dat
:
if
'nik'
in
dat
:
nik
=
re
.
sub
(
'
\
D'
,
''
,
dat
[
'nik'
])
nik
=
re
.
sub
(
'
\
D'
,
''
,
dat
[
'nik'
])
if
len
(
nik
)
!=
1
5
:
if
len
(
nik
)
!=
1
6
:
log
.
info
(
"Validasi NIK Error"
)
log
.
info
(
"Validasi NIK Error"
)
raise
JsonRpcInvalidNikError
raise
JsonRpcInvalidNikError
...
...
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