NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on November 30, 2020, 01:04:45 PM

Title: Secwin 7 Question
Post by: osquiabro on November 30, 2020, 01:04:45 PM
is possible overwrite the message "Login Failed: User Not Found." in SecwinLoginWeb

thanks..
Title: Re: Secwin 7 Question
Post by: Bruce on November 30, 2020, 09:49:50 PM
yes. All text flows through the Secwin translate method.

cheers
Brcue
Title: Re: Secwin 7 Question
Post by: osquiabro on December 01, 2020, 03:18:13 AM
how because this is Alert message?, in ValidateUpdate  Routine i can overwrite the password message but not for username

CASE Login.StartLogin()
  of sw:notok
      case Login.Error
      of sw:WrongPassword
          loc:Invalid = 'swLogin'
          swLogin:IsInvalid = true
          loc:alert = 'Invalid User Name or Password'
          Loc:InvalidTab = 0             
      END           
  END
Title: Re: Secwin 7 Question
Post by: Bruce on December 01, 2020, 05:00:02 PM
loc:alert is used, by sending it to the .SetAlert method.
That in turn passes the text through the .translate method in web handler.

If you are using it somewhere else yourself, then pass it through p_web.translate.

cheers
Bruce
Title: Re: Secwin 7 Question
Post by: osquiabro on December 02, 2020, 06:32:08 AM
thanks, done.
Title: Re: Secwin 7 Question
Post by: osquiabro on January 05, 2021, 04:31:12 AM
hi Bruce, any demo available for secwin7 and NT?

thanks
Title: Re: Secwin 7 Question
Post by: DonRidley on January 05, 2021, 09:23:04 PM
Example App:
https://github.com/donridley1972/NT12_Secwin7Example/archive/main.zip (https://github.com/donridley1972/NT12_Secwin7Example/archive/main.zip)

This is just something I was playing around with to get accustomed to NT12/SecWin7.

It seems to work.

Logins:

SysAdmin    demo
TestAdmin   demo
TestUser    demo

I have also attached images of the menu demonstrating access control as a User and Admin.

The only caveat right now is that the "Performance" setting has to be set to Debug in order for the Tree field to work.  I'm sure that will be addressed in a future update.

Enjoy,

Don
Title: Re: Secwin 7 Question
Post by: DonRidley on January 05, 2021, 10:28:50 PM
Pretty much the same but as a Multi DLL App.

https://github.com/donridley1972/NT12_SecWin7_MultiDLL_Example/archive/main.zip (https://github.com/donridley1972/NT12_SecWin7_MultiDLL_Example/archive/main.zip)

Title: Re: Secwin 7 Question
Post by: Rene Simons on January 06, 2021, 12:22:07 AM
Hi Don,
Do you ever sleep?
René
Title: Re: Secwin 7 Question
Post by: DonRidley on January 06, 2021, 02:46:14 AM
I'm on night shift for the next three months.

So my work hours are closer to Bruce's than most folks around here LOL. 
Title: Re: Secwin 7 Question
Post by: osquiabro on January 06, 2021, 06:00:17 AM
thanks Don, for example, but it doesn't work, I don't know what is missing, first when open application triggers an error the template is missing, I don't know which one is missing, second after compiling and running of the application and login with sysadmin or admin does not happen nothing, the menu is activated but does not execute anything in security submebu, third when click on Tree field the app generate a gpf, this error occurs in both app examples.
Title: Re: Secwin 7 Question
Post by: DonRidley on January 06, 2021, 06:46:13 AM
I just downloaded the single EXE version and it compiled and ran fine.

Make sure you change the global dictionary path property to reflect your environment. 

Don
Title: Re: Secwin 7 Question
Post by: osquiabro on January 13, 2021, 05:06:49 AM
Bruce any update for this template?
Title: Re: Secwin 7 Question
Post by: Bruce on January 13, 2021, 10:42:47 PM
yes, the current rollout is to get 12.04 out (hopefully today) then I can return to the Secwin7/NetTalk 12 integration.
It's a chicken-and-egg situation - I need the features in NetTalk 12.04 to complete the Secwin 7 work and vice versa.