User Security Manager
New User Security Manager Video Posted
Gravatar is a globally recognized avatar based on your email address. New User Security Manager Video Posted
  Rick Strahl
  All
  May 12, 2020 @ 03:31pm

Hi all,

I've posted a new video on getting started with the User Security Manager for Web Connection, which is a basic, plug-in user management solution for Web Connection 7.x applications.

Getting Started with the West Wind User Security Manager
Best watched in full screen at HD resolution (1920x1080) using full screen or theater mode on YouTube

The video goes over features and walks through adding the User Security Manager to a new Web Connection project.

Check it out if you're interested in quickly adding user management to an existing application.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: New User Security Manager Video Posted
  Jim Monte
  Rick Strahl
  May 12, 2020 @ 05:30pm

Excellent video.. I noticed in the video you clicked the Edit button on the Server Form and it launched Visual Studios .. How do I get mine to launch it.. It does nothing when i click it..

Jim

Gravatar is a globally recognized avatar based on your email address. re: New User Security Manager Video Posted
  Rick Strahl
  Jim Monte
  May 12, 2020 @ 08:13pm

By default Web Connection uses Visual Studio Code for the path so if you don't have that installed it won't pop up the editor.

This can be customized in the yourApp.ini file though. To use Visual Studio for example you could use:

[Main]
CodeEditorCommandLine="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe" "\WebConnectionProjects\wwThreads\wwThreads.sln"

Unfotunately I'm just realizing that this doesn't work currently due to the FoxPro Run command choking on the long paths with spaces in it.

I've fixed this here with a new helper function and some updated code. If you want to fix you can do that with the following small changes:

Add this function to wwUtils.prg:

************************************************************************
*  ExecuteCommandLine
****************************************
***  Function: Executes a raw command line with executable and
***            and command line parameters.
***    Assume: EXE path with spaces should have double quotes around
***            the exe. Any parametres with spaces also should be quoted
***            Ideally parameters should be quoted.
***            Runs through ShellExecute()
***      Pass: lcFullCommandLine - EXE and Parameters
***            lcFolder          - Folder to run out or current
***    Return: 
************************************************************************
FUNCTION ExecuteCommandLine(lcCommandLine, lcFolder)
LOCAL lcExe, lcParms, lnAt

IF EMPTY(lcFolder)
   lcFolder = SYS(5) + CURDIR()
ENDIF 

lcExe = lcCommandLine
lcParms = ""
lnAt = AT(["],lcCommandLine)

IF (lnAt > 0)
    lnAt = AT([" ],lcCommandLine)
    IF lnAt > 0
	    lcExe = SUBSTR(lcCommandLine,1,lnAt-1)
	    lcParms = ALLTRIM(SUBSTR(lcCommandLine,lnAt+1))
	ELSE
	    lcExe = STRTRAN(lcCommandLine,["],"")
    ENDIF
ELSE
   lcExe = STRTRAN(lcCommandLine,["],"")
   lnAt = AT(" ",lcCommandLine)
   IF(lnAt > 1)
      lcExe = SUBSTR(lcCommandLine,1,lnAt-1)
      lcParms = ALLTRIM(SUBSTR(lcCommandLine,lnAt))
   ENDIF
ENDIF	

lcExe = STRTRAN(lcExe,["],"")

Gourl(lcExe,"OPEN",lcFolder,lcParms)
ENDFUNC
*   ExecuteCommandLine

Then edit the class library for wwServerForm::btnEditor.Click() handler and replace the RUN command with this:

IF !EMPTY(lcExecute)
   ExecuteCommandLine(lcExecute)
ENDIF

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: New User Security Manager Video Posted
  Jim Monte
  Rick Strahl
  May 13, 2020 @ 05:27am

Thanks.. I'll give it a try.. I see that you released an updated usersecurity.zip.. going to download it..

Gravatar is a globally recognized avatar based on your email address. re: New User Security Manager Video Posted
  Richard Kaye
  Rick Strahl
  May 19, 2020 @ 09:49am

Good stuff, Rick. I'm just about to try to get back into this in my new app so this is very timely. 😃

© 1996-2020