Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
46559856
Commit
46559856
authored
Dec 02, 2009
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added auto-login page
parent
13099fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
auto-login.tcl
www/auto-login.tcl
+36
-0
No files found.
www/auto-login.tcl
0 → 100644
View file @
46559856
# /packages/intranet-rest/www/auto-login.tcl
#
# Copyright (C
)
2009
]
project-open
[
#
ad_page_contract
{
Home page for REST service, when accessing from the browser.
The page shows a link to the documentation Wiki and a status
of CRUD for every object type.
@author frank.bergmann@project-open.com
}
{
}
# Parameters passed aside of page_contract
# from intranet-rest-procs.tcl:
#
# [list object_type $object_type
]
\
#
[
list
format
$format
]
\
#
[
list
user_id
$user
_id
]
\
#
[
list
object_id
$object
_id
]
\
#
[
list
query_hash
$query
_hash
]
\
if
{
!
[
info
exists user_id
]}
{
set user_id 0
}
set
auto_login
[
im_generate_auto_login -user_id
$user
_id
]
set
username
""
db_0or1row user_info
"
select *,
im_name_from_user_id(user_id) as name
from cc_users
where user_id = :user_id
"
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