NetTalk Central

Author Topic: Secwin 7 Question  (Read 3309 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
    • Email
Secwin 7 Question
« on: November 30, 2020, 01:04:45 PM »
is possible overwrite the message "Login Failed: User Not Found." in SecwinLoginWeb

thanks..

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: Secwin 7 Question
« Reply #1 on: November 30, 2020, 09:49:50 PM »
yes. All text flows through the Secwin translate method.

cheers
Brcue

osquiabro

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: Secwin 7 Question
« Reply #3 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

osquiabro

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #4 on: December 02, 2020, 06:32:08 AM »
thanks, done.

osquiabro

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #5 on: January 05, 2021, 04:31:12 AM »
hi Bruce, any demo available for secwin7 and NT?

thanks

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #6 on: January 05, 2021, 09:23:04 PM »
Example App:
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
« Last Edit: January 05, 2021, 11:39:22 PM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #7 on: January 05, 2021, 10:28:50 PM »
« Last Edit: January 05, 2021, 11:39:50 PM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Rene Simons

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: Secwin 7 Question
« Reply #8 on: January 06, 2021, 12:22:07 AM »
Hi Don,
Do you ever sleep?
René
Rene Simons
NT14.14

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #9 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. 
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

osquiabro

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #10 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.

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #11 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
« Last Edit: January 06, 2021, 06:55:59 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

osquiabro

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
    • Email
Re: Secwin 7 Question
« Reply #12 on: January 13, 2021, 05:06:49 AM »
Bruce any update for this template?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: Secwin 7 Question
« Reply #13 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.