Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
34b1bb6a
Commit
34b1bb6a
authored
22 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Create user objects AFTER user login is handled (duh)
parent
0d714338
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/websrvr.c
+11
-6
11 additions, 6 deletions
src/sbbs3/websrvr.c
with
11 additions
and
6 deletions
src/sbbs3/websrvr.c
+
11
−
6
View file @
34b1bb6a
...
@@ -894,9 +894,17 @@ static BOOL check_ars(http_session_t * session)
...
@@ -894,9 +894,17 @@ static BOOL check_ars(http_session_t * session)
free
(
ar
);
free
(
ar
);
if
(
authorized
)
{
if
(
authorized
)
{
add_env
(
session
,
"AUTH_TYPE"
,
"Basic"
);
if
(
session
->
req
.
dynamic
==
IS_CGI
)
{
/* Should use real name if set to do so somewhere ToDo */
add_env
(
session
,
"AUTH_TYPE"
,
"Basic"
);
add_env
(
session
,
"REMOTE_USER"
,
session
->
user
.
alias
);
/* Should use real name if set to do so somewhere ToDo */
add_env
(
session
,
"REMOTE_USER"
,
session
->
user
.
alias
);
}
if
(
session
->
req
.
dynamic
==
IS_SSJS
)
{
if
(
!
js_CreateUserObjects
(
session
->
js_cx
,
session
->
js_glob
,
&
scfg
,
&
session
->
user
,
NULL
/* ftp index file */
,
NULL
/* subscan */
))
lprintf
(
"%04d !JavaScript ERROR creating user objects"
,
session
->
socket
);
}
return
(
TRUE
);
return
(
TRUE
);
}
}
...
@@ -2079,9 +2087,6 @@ static BOOL js_setup(http_session_t* session)
...
@@ -2079,9 +2087,6 @@ static BOOL js_setup(http_session_t* session)
if
(
js_CreateMsgBaseClass
(
session
->
js_cx
,
session
->
js_glob
,
&
scfg
)
==
NULL
)
if
(
js_CreateMsgBaseClass
(
session
->
js_cx
,
session
->
js_glob
,
&
scfg
)
==
NULL
)
lprintf
(
"%04d !JavaScript ERROR creating MsgBase class"
,
session
->
socket
);
lprintf
(
"%04d !JavaScript ERROR creating MsgBase class"
,
session
->
socket
);
if
(
!
js_CreateUserObjects
(
session
->
js_cx
,
session
->
js_glob
,
&
scfg
,
&
session
->
user
,
NULL
/* ftp index file */
,
NULL
/* subscan */
))
lprintf
(
"%04d !JavaScript ERROR creating user objects"
,
session
->
socket
);
#if 0
#if 0
if(js_CreateClientObject(session->js_cx, session->js_glob, "client", &client
if(js_CreateClientObject(session->js_cx, session->js_glob, "client", &client
,session->socket)==NULL)
,session->socket)==NULL)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment