Stephen Walasavage · Sep 14, 2016 go to post

The code you supplied above doesn't compile correctly in Studio, so it looks like you can't read directly to a property of an object directly.  In your case, I would try something like this:

Set Name=##class(Example.Team1).%New()
read "Enter your name: ",nameinput
set Name.Name = nameinput
set status = Name.%Save()

There may be other ways of getting input into an object property, but this is one of the easiest.

Stephen Walasavage · Feb 24, 2016 go to post

If you're talking about having additional custom checks for a regular Cache Password user, I believe the answer is that it's not possible.  It would have to be a pure Delegated user to have additional checks (and the ZAUTHENTICATE routine would need to be completely responsible for the Delegated user's properties).

Stephen Walasavage · Feb 24, 2016 go to post

What version are you running?  I'd say the expected result is a successful login, assuming correct credentials are entered;  we'll try Delegated authentication first, and if that fails, then try Password.  I just tried this with _SYSTEM, and I got one LoginFailure and one successful Login when I view the Audit log.

For the LoginFailure:

Description:  Programmer mode login failure

 

Error message:  No access [ZAUTHENTICATE+1^ZAUTHENTICATE:%SYS]

Service name: %Service_Console

Login routine:  Programmer mode

 

What you described is what I would expect would happen.  If you're looking to restrict access based on code in ^ZAUTHENTICATE, you'll probably need to only have Delegated authentication checked/enabled for the service (this would of course mean the user is of type Delegated User instead of Cache Password User).

http://docs.intersystems.com/cache20152/csp/docbook/DocBook.UI.Page.cls…