1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-08 23:10:05 +00:00

feat(web): added profile + edit + autoexec changes

This commit is contained in:
Saad Jutt
2022-05-26 04:25:15 +05:00
parent e4239fbcc3
commit c275db184e
13 changed files with 256 additions and 17 deletions

View File

@@ -119,9 +119,9 @@ filename _webout "${weboutPath}" mod;
/* dynamic user-provided vars */
${preProgramVarStatments}
/* user auto exec starts */
${otherArgs?.userAutoExec}
/* user auto exec ends */
/* user autoexec starts */
${otherArgs?.userAutoExec ?? ''}
/* user autoexec ends */
/* actual job code */
${program}`

View File

@@ -177,7 +177,7 @@ const getUser = async (
username: user.username,
isActive: user.isActive,
isAdmin: user.isAdmin,
autoExec: getAutoExec ? user.autoExec : undefined
autoExec: getAutoExec ? user.autoExec ?? '' : undefined
}
}

View File

@@ -97,6 +97,7 @@ const login = async (
return {
loggedIn: true,
user: {
id: user.id,
username: user.username,
displayName: user.displayName
}