Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emiMobile
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
emiMobile
Commits
46bac255
Commit
46bac255
authored
Sep 17, 2026
by
Mac Stephens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove register URL routing while retaining device registration form
parent
d4d5aeae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
wcEmiMobile.dpr
webEMIMobile/wcEmiMobile.dpr
+0
-25
No files found.
webEMIMobile/wcEmiMobile.dpr
View file @
46bac255
...
@@ -4,7 +4,6 @@ program wcEmiMobile;
...
@@ -4,7 +4,6 @@ program wcEmiMobile;
uses
uses
Vcl.Forms,
Vcl.Forms,
Web,
XData.Web.Connection,
XData.Web.Connection,
Auth.Service in 'Auth.Service.pas',
Auth.Service in 'Auth.Service.pas',
App.Types in 'App.Types.pas',
App.Types in 'App.Types.pas',
...
@@ -34,11 +33,6 @@ uses
...
@@ -34,11 +33,6 @@ uses
procedure DisplayLoginView(AMessage: string = ''); forward;
procedure DisplayLoginView(AMessage: string = ''); forward;
function HasRegisterParameter: Boolean;
begin
Result := TJSURLSearchParams.new(window.location.search).has('register');
end;
procedure DisplayMainView;
procedure DisplayMainView;
procedure ConnectProc;
procedure ConnectProc;
...
@@ -64,19 +58,6 @@ begin
...
@@ -64,19 +58,6 @@ begin
TFViewLogin.Display(@DisplayMainView, AMessage);
TFViewLogin.Display(@DisplayMainView, AMessage);
end;
end;
procedure DisplayDeviceRegistrationView;
procedure OnRegistered;
begin
if Assigned(FViewDeviceRegistration) then
FViewDeviceRegistration.Free;
DisplayLoginView;
end;
begin
TFViewDeviceRegistration.Display(@OnRegistered);
end;
procedure UnauthorizedAccessProc(AMessage: string);
procedure UnauthorizedAccessProc(AMessage: string);
begin
begin
DisplayLoginView(AMessage);
DisplayLoginView(AMessage);
...
@@ -84,12 +65,6 @@ end;
...
@@ -84,12 +65,6 @@ end;
procedure StartApplication;
procedure StartApplication;
begin
begin
if HasRegisterParameter then
begin
DisplayDeviceRegistrationView;
Exit;
end;
if (not AuthService.Authenticated) or AuthService.TokenExpired then
if (not AuthService.Authenticated) or AuthService.TokenExpired then
DisplayLoginView
DisplayLoginView
else
else
...
...
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