Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
2c0e5108
Commit
2c0e5108
authored
Jul 18, 2024
by
Matthias Betz
Browse files
fix
parent
fffe3285
Changes
1
Show whitespace changes
Inline
Side-by-side
routes/account.ts
View file @
2c0e5108
...
@@ -2,6 +2,7 @@ import fs from 'fs'
...
@@ -2,6 +2,7 @@ import fs from 'fs'
import
async
from
'
async
'
import
async
from
'
async
'
import
bcrypt
from
'
bcryptjs
'
import
bcrypt
from
'
bcryptjs
'
import
*
as
passportSaml
from
'
passport-saml
'
import
*
as
passportSaml
from
'
passport-saml
'
import
uuidv4
=
require
(
'
uuid/v4
'
);
import
dbconn
from
'
../config/dbconn
'
import
dbconn
from
'
../config/dbconn
'
import
methods
from
'
../functions/methods
'
import
methods
from
'
../functions/methods
'
import
gitlab
from
'
../functions/gitlab
'
import
gitlab
from
'
../functions/gitlab
'
...
@@ -435,9 +436,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
...
@@ -435,9 +436,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
if
(
!
req
.
files
)
{
if
(
!
req
.
files
)
{
callback
(
null
,
newLogoFile
)
callback
(
null
,
newLogoFile
)
}
else
{
}
else
{
//
let fileName = uuidv4();
let
fileName
=
uuidv4
();
newLogoFile
.
mv
(
logoDir
+
newLogoF
ile
.
n
ame
,
function
(
err
:
any
)
{
newLogoFile
.
mv
(
logoDir
+
f
ile
N
ame
,
function
(
err
:
any
)
{
newLogoFile
=
logoDir
+
newLogoF
ile
.
n
ame
newLogoFile
=
logoDir
+
f
ile
N
ame
callback
(
err
,
newLogoFile
)
callback
(
err
,
newLogoFile
)
})
})
}
}
...
@@ -531,9 +532,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
...
@@ -531,9 +532,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
callback
(
null
,
newLogoFile
)
callback
(
null
,
newLogoFile
)
}
else
{
}
else
{
newLogoFile
=
req
.
files
.
logo
newLogoFile
=
req
.
files
.
logo
//
let fileName = uuidv4();
let
fileName
=
uuidv4
();
newLogoFile
.
mv
(
logoDir
+
newLogoF
ile
.
n
ame
,
function
(
err
:
any
)
{
newLogoFile
.
mv
(
logoDir
+
f
ile
N
ame
,
function
(
err
:
any
)
{
newLogoFile
=
logoDir
+
newLogoF
ile
.
n
ame
newLogoFile
=
logoDir
+
f
ile
N
ame
callback
(
err
,
newLogoFile
)
callback
(
err
,
newLogoFile
)
})
})
}
}
...
...
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