mazluta 0 Posted March 3, 2023 i just create rest service with authoticate entry. the default login form look like this : how can i change the login form as i want and control the form shape? lables, headers, positions Share this post Link to post
Lars Fosdal 1792 Posted March 3, 2023 Datasnap is intended for serving applications with data, not for being a custom Web UI. Not sure if you can customize any html part of it? Share this post Link to post
mazluta 0 Posted March 3, 2023 first, thanks. I use my rest to get a PDF file as base64, a digital sign with some digital certificate. based on the user's table I want to popup him with the login form. but I don't want him to see the "Server Function.." label. Share this post Link to post
programmerdelphi2k 237 Posted March 3, 2023 (edited) you can hide any function for users not-admin using "attributes" https://docwiki.embarcadero.com/Libraries/Sydney/en/API:Datasnap.DSAuth.TRoleAuth https://stackoverflow.com/questions/5354812/delphi-datasnap-authorization-not-repecting-troleauth-attribute customization can be done on events before send to client, or using a frameworks (3rd) like done by Intraweb, UniGui, etc... Edited March 3, 2023 by programmerdelphi2k Share this post Link to post
mazluta 0 Posted March 3, 2023 I just want the Login form to look like this : Share this post Link to post
mazluta 0 Posted March 3, 2023 ".....customization can be done on events before send to client, or using a frameworks (3rd) like done by Intraweb, UniGui, etc... ....." can i write Web Service with UNIGUI ? Share this post Link to post
programmerdelphi2k 237 Posted March 3, 2023 (edited) you can try "just comment this line on source" procedure TWebModule1.ServerFunctionInvokerHTMLTag(Sender: TObject; Tag: TTag; const TagString: string; TagParams: TStrings; var ReplaceText: string); begin ... else { if SameText(TagString, 'serverfunctioninvoker') then if AllowServerFunctionInvoker then ReplaceText := '<div><a href="' + string(Request.InternalScriptName) + '/ServerFunctionInvoker" target="_blank">Server Functions</a></div>' else } ReplaceText := ''; end; here the page is called if link is alive Edited March 3, 2023 by programmerdelphi2k Share this post Link to post
programmerdelphi2k 237 Posted March 3, 2023 all response is done by html, then, you can create yourself "page html" and use it as your Login page!!! see the "...\Project1\templates, ..Project1\css, ...Project\images" folders ... see the templates default: reversestring.html, serverfunctioninvoker.html or you can use the a "TPageProducer" component and link to "PageXXXX.html" or just type your "hmtl code" in HTMLDoc property!!! you can use any HTML tags, include CSS for create your layout with all valid tags! no needs 3rd at all Share this post Link to post
mazluta 0 Posted March 4, 2023 well programmer..2k. that work. thanls b.t.w you are not so selfishness Share this post Link to post
programmerdelphi2k 237 Posted March 4, 2023 @mazluta thanks for words... I try 😁 Share this post Link to post