Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emT3web
Overview
Overview
Details
Activity
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
Mac Stephens
emT3web
Commits
b08c5f9e
Commit
b08c5f9e
authored
Apr 15, 2026
by
Mac Stephens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add weblogin functionality for fallback login; Added WEB_LOGIN to web_tasks_url
parent
72262daa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
107 additions
and
5 deletions
+107
-5
Api.Database.dfm
emT3XDataServer/Source/Api.Database.dfm
+1
-0
Auth.Database.dfm
emT3XDataServer/Source/Auth.Database.dfm
+92
-5
Auth.Database.pas
emT3XDataServer/Source/Auth.Database.pas
+12
-0
Auth.Service.pas
emT3XDataServer/Source/Auth.Service.pas
+1
-0
Auth.ServiceImpl.pas
emT3XDataServer/Source/Auth.ServiceImpl.pas
+1
-0
No files found.
emT3XDataServer/Source/Api.Database.dfm
View file @
b08c5f9e
...
...
@@ -9,6 +9,7 @@ object ApiDatabase: TApiDatabase
LoginPrompt = False
Left = 267
Top = 395
EncryptedPassword = '9AFF92FF8CFF86FF8CFFCFFFCEFF'
end
object MySQLUniProvider1: TMySQLUniProvider
Left = 416
...
...
emT3XDataServer/Source/Auth.Database.dfm
View file @
b08c5f9e
object AuthDatabase: TAuthDatabase
OnCreate = DataModuleCreate
OnDestroy = DataModuleDestroy
Height = 2
49
Width =
433
Height = 2
02
Width =
578
object uqWebTasksUrl: TUniQuery
Connection = ucETaskAuth
SQL.Strings = (
...
...
@@ -30,8 +30,8 @@ object AuthDatabase: TAuthDatabase
'order by w.URL_TIME desc'
'limit 1')
FetchRows = 100
Left =
162
Top = 4
5
Left =
78
Top = 4
3
ParamData = <
item
DataType = ftUnknown
...
...
@@ -103,7 +103,8 @@ object AuthDatabase: TAuthDatabase
ProviderName = 'MySQL'
Database = 'eTask'
Username = 'root'
Server = '192.168.102.129'
Server = '192.168.102.131'
Connected = True
LoginPrompt = False
Left = 69
Top = 133
...
...
@@ -113,4 +114,90 @@ object AuthDatabase: TAuthDatabase
Left = 194
Top = 132
end
object uqWebLogin: TUniQuery
Connection = ucETaskAuth
SQL.Strings = (
'select'
' u.USER_ID,'
' u.USER_NAME,'
' u.NAME,'
' u.STATUS,'
' u.EMAIL,'
' u.ACCESS_LEVEL,'
' u.TASK_RIGHTS,'
' u.PERSPECTIVE_ID,'
' u.LAST_NAME,'
' u.FIRST_NAME,'
' w.WEB_LOGIN'
'from web_tasks_url w'
'join users u on u.USER_ID = w.USER_ID'
'where w.USER_ID = :USER_ID'
' and w.TASK_ID = :TASK_ID'
' and u.PASSWORD = :PASSWORD')
Left = 192
Top = 44
ParamData = <
item
DataType = ftUnknown
Name = 'USER_ID'
Value = nil
end
item
DataType = ftUnknown
Name = 'TASK_ID'
Value = nil
end
item
DataType = ftUnknown
Name = 'PASSWORD'
Value = nil
end>
object uqWebLoginUSER_ID: TStringField
FieldName = 'USER_ID'
Required = True
Size = 7
end
object uqWebLoginUSER_NAME: TStringField
FieldName = 'USER_NAME'
Required = True
Size = 12
end
object uqWebLoginNAME: TStringField
FieldName = 'NAME'
Size = 40
end
object uqWebLoginSTATUS: TStringField
FieldName = 'STATUS'
Size = 7
end
object uqWebLoginEMAIL: TStringField
FieldName = 'EMAIL'
Size = 50
end
object uqWebLoginACCESS_LEVEL: TIntegerField
FieldName = 'ACCESS_LEVEL'
end
object uqWebLoginTASK_RIGHTS: TIntegerField
FieldName = 'TASK_RIGHTS'
end
object uqWebLoginPERSPECTIVE_ID: TStringField
FieldName = 'PERSPECTIVE_ID'
Size = 45
end
object uqWebLoginLAST_NAME: TStringField
FieldName = 'LAST_NAME'
Size = 35
end
object uqWebLoginFIRST_NAME: TStringField
FieldName = 'FIRST_NAME'
Size = 25
end
object uqWebLoginWEB_LOGIN: TStringField
FieldName = 'WEB_LOGIN'
ReadOnly = True
Required = True
FixedChar = True
Size = 1
end
end
end
emT3XDataServer/Source/Auth.Database.pas
View file @
b08c5f9e
...
...
@@ -25,6 +25,18 @@ type
uqWebTasksUrlFIRST_NAME
:
TStringField
;
uqWebTasksUrlURL_TIME
:
TDateTimeField
;
uqWebTasksUrlURL_TIME_EXP
:
TIntegerField
;
uqWebLogin
:
TUniQuery
;
uqWebLoginUSER_ID
:
TStringField
;
uqWebLoginUSER_NAME
:
TStringField
;
uqWebLoginNAME
:
TStringField
;
uqWebLoginSTATUS
:
TStringField
;
uqWebLoginEMAIL
:
TStringField
;
uqWebLoginACCESS_LEVEL
:
TIntegerField
;
uqWebLoginTASK_RIGHTS
:
TIntegerField
;
uqWebLoginPERSPECTIVE_ID
:
TStringField
;
uqWebLoginLAST_NAME
:
TStringField
;
uqWebLoginFIRST_NAME
:
TStringField
;
uqWebLoginWEB_LOGIN
:
TStringField
;
procedure
DataModuleCreate
(
Sender
:
TObject
);
procedure
DataModuleDestroy
(
Sender
:
TObject
);
private
...
...
emT3XDataServer/Source/Auth.Service.pas
View file @
b08c5f9e
...
...
@@ -20,6 +20,7 @@ type
[
'{9CFD59B2-A832-4F82-82BB-9A25FC93F305}'
]
function
Login
(
const
userId
,
taskId
,
urlCode
:
string
):
string
;
function
VerifyVersion
(
ClientVersion
:
string
):
TJSONObject
;
function
WebLogin
(
const
userId
,
taskId
,
password
:
string
):
string
;
end
;
implementation
...
...
emT3XDataServer/Source/Auth.ServiceImpl.pas
View file @
b08c5f9e
...
...
@@ -34,6 +34,7 @@ type
public
function
Login
(
const
userId
,
taskId
,
urlCode
:
string
):
string
;
function
VerifyVersion
(
ClientVersion
:
string
):
TJSONObject
;
function
WebLogin
(
const
userId
,
taskId
,
password
:
string
):
string
;
end
;
implementation
...
...
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