File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export const {
28
28
29
29
export const {
30
30
findUser,
31
+ findUserByOIDC,
31
32
getUsers,
32
33
createUser,
33
34
deleteUser,
Original file line number Diff line number Diff line change @@ -12,19 +12,21 @@ export const createUser = async (
12
12
password : string ,
13
13
email : string ,
14
14
gitAccount : string ,
15
- admin : boolean = false
15
+ admin : boolean = false ,
16
+ oidcId : string = '' ,
16
17
) => {
17
18
console . log (
18
19
`creating user
19
20
user=${ username } ,
20
21
gitAccount=${ gitAccount }
21
22
email=${ email } ,
22
- admin=${ admin } ` ,
23
+ admin=${ admin }
24
+ oidcId=${ oidcId } ` ,
23
25
) ;
24
26
25
27
const data = {
26
28
username : username ,
27
- password : await bcrypt . hash ( password , 10 ) ,
29
+ password : oidcId ? null : await bcrypt . hash ( password , 10 ) ,
28
30
gitAccount : gitAccount ,
29
31
email : email ,
30
32
admin : admin ,
@@ -62,6 +64,7 @@ export const {
62
64
writeAudit,
63
65
getPush,
64
66
findUser,
67
+ findUserByOIDC,
65
68
getUsers,
66
69
deleteUser,
67
70
updateUser,
Original file line number Diff line number Diff line change 4
4
PullActionPlugin,
5
5
PushActionPlugin,
6
6
PluginLoader,
7
- } = require ( '../src/plugin' ) ;
7
+ } = require ( '../../ src/plugin' ) ;
8
8
const { spawnSync } = require ( 'child_process' ) ;
9
9
const { rmSync } = require ( 'fs' ) ;
10
10
const { join } = require ( 'path' ) ;
@@ -13,7 +13,7 @@ chai.should();
13
13
14
14
const expect = chai . expect ;
15
15
16
- const testPackagePath = join ( __dirname , 'fixtures' , 'test-package' ) ;
16
+ const testPackagePath = join ( __dirname , '../ fixtures' , 'test-package' ) ;
17
17
18
18
describe ( 'loading plugins from packages' , function ( ) {
19
19
// eslint-disable-next-line no-invalid-this
You can’t perform that action at this time.
0 commit comments