Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
2be1c77c
Commit
2be1c77c
authored
Jun 12, 2020
by
Ivar Derksen
Committed by
Sietse Ringers
Dec 11, 2020
Browse files
Updated keyshareuser.sql example script to postgreSQL
parent
e724cfe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
testdata/keyshareuser.sql
View file @
2be1c77c
INSERT
INTO
`users`
VALUES
(
485
,
'testusername'
,
NULL
,
NULL
,
NULL
,
'puZGbaLDmFywGhFDi4vW2G87ZhXpaUsvymZwNJfB/SU=
\n
'
,
0
,
'0'
,
'241c78b309f8d774f32e0128c9270dc1776d9e1c6e7b763e66961a13f7b2e4df'
,
NULL
,
1
,
1
,
0
,
'en'
,
NULL
);
\ No newline at end of file
DELETE
from
irma
.
users
WHERE
username
=
'test_username'
;
INSERT
INTO
irma
.
users
(
username
,
language
,
coredata
,
last_seen
,
pin_counter
,
pin_block_date
)
VALUES
(
'test_username'
,
'en'
,
decode
(
'YWJjZK4w5SC+7D4lDrhiJGvB1iwxSeF90dGGPoGqqG7g3ivbfHibOdkKoOTZPbFlttBzn2EJgaEsL24Re8OWWWw5pd31/GCd14RXcb9Wy2oWhbr0pvJDLpIxXZt/qiQC0nJiIAYWLGZOdj5o0irDfqP1CSfw3IoKkVEl4lHRj0LCeINJIOpEfGlFtl4DHlWu8SMQFV1AIm3Gv64XzGncdkclVd41ti7cicBrcK8N2u9WvY/jCS4/Lxa2syp/O4IY'
,
'base64'
),
1591951755
,
0
,
0
);
INSERT
INTO
irma
.
log_entry_records
(
time
,
event
,
user_id
)
VALUES
(
1591951800
,
'PIN_CHECK_SUCCESS'
,
(
SELECT
id
FROM
irma
.
users
WHERE
username
=
'test_username'
)
);
INSERT
INTO
irma
.
email_verification_tokens
(
token
,
email
,
expiry
,
user_id
)
VALUES
(
'test_token'
,
'test@example.com'
,
1700000000
,
(
SELECT
id
FROM
irma
.
users
WHERE
username
=
'test_username'
)
);
INSERT
INTO
irma
.
emails
(
user_id
,
email
)
VALUES
(
(
SELECT
id
FROM
irma
.
users
WHERE
username
=
'test_username'
),
'test@example.com'
);
Write
Preview
Supports
Markdown
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