Is it possible to combine the signon & chg Pwd screens

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
leomoore
Profound User
Posts: 35
Joined: Thu Mar 15, 2012 3:42 pm
First Name: Robert
Last Name: Moore
Company Name: General Parts Company
Phone: 770-818-4736
Address 1: 3100 Windy Hill Rd.
City: Atlanta
State / Province: Georgia
Zip / Postal Code: 30339
Country: United States
Contact:

Is it possible to combine the signon & chg Pwd screens

Post by leomoore »

Is it possible to combine the Login and change password screens into one screen? The request is to merge them into one screen. As I understand the request, the log-in screen would display initially with a button to select change password. If the button is clicked, the log-in fields would disappear and the fields and button to change password would appear. A back button would be available to both screens.

I have the DDS for PUICHGPWD and PUISCREED in my library and merging the screens is simple, but the RPG is harder to locate.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Is it possible to combine the signon & chg Pwd screens

Post by David »

The screens are driven from internal processes and cannot be changed/combined in that way. You can't make the sign on program call the change password program, for example, unless it does so automatically for expired password or password about to expire.

That said, you can add a call to the change password screen from your own application screens -- call program PUI0001203.

Use this prototype:
RPG CODE
D Change_Password...                                       
D                 PR                  ExtPgm('PUI0001203') 
D  User                         10A   Const                
D  Error_Msg                   132A   Options(*NoPass)     
D  Need_Handle                    N   Options(*NoPass)     
D  Handle                       12A   Options(*NoPass)
For user, pass the "current user profile" field (358-367) from the SDS. The other parameters are not required and can be omitted.
leomoore
Profound User
Posts: 35
Joined: Thu Mar 15, 2012 3:42 pm
First Name: Robert
Last Name: Moore
Company Name: General Parts Company
Phone: 770-818-4736
Address 1: 3100 Windy Hill Rd.
City: Atlanta
State / Province: Georgia
Zip / Postal Code: 30339
Country: United States
Contact:

Re: Is it possible to combine the signon & chg Pwd screens

Post by leomoore »

Thanks, this helps me stop chasing squirrels.
leomoore
Profound User
Posts: 35
Joined: Thu Mar 15, 2012 3:42 pm
First Name: Robert
Last Name: Moore
Company Name: General Parts Company
Phone: 770-818-4736
Address 1: 3100 Windy Hill Rd.
City: Atlanta
State / Province: Georgia
Zip / Postal Code: 30339
Country: United States
Contact:

Re: Is it possible to combine the signon & chg Pwd screens

Post by leomoore »

Can I bypass the existing logon and change password screens with a custom program that uses the APIs to handle these functions?
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Is it possible to combine the signon & chg Pwd screens

Post by David »

Yes. Profound UI supports running "anonymous" sessions, meaning you are not required to sign on.

For security, it has a database of programs that are allowed to be called in this way. This is maintained under Launch->Maintain Anonymous Programs. DB file where they are stored is PUI0001200.

Any program listed in there can be called up using:

/profoundui/start?pgm=mylib/mypgm

The program could then present its own "sign on" screen and do its own thing.
leomoore
Profound User
Posts: 35
Joined: Thu Mar 15, 2012 3:42 pm
First Name: Robert
Last Name: Moore
Company Name: General Parts Company
Phone: 770-818-4736
Address 1: 3100 Windy Hill Rd.
City: Atlanta
State / Province: Georgia
Zip / Postal Code: 30339
Country: United States
Contact:

Re: Is it possible to combine the signon & chg Pwd screens

Post by leomoore »

We took your responses and modified our requirements and everything is working, to a point. We modified the login and change password screens, but our QA tester discovered that if she logs in and immediately clicks on change password that the login screen is still visible underneath the change password screen.

My theory is that it is because the screens were changed to use images as the background rather than a panel. Can you tell me if there is any validity to this before I spend (billable) time testing my theory? You have my consent to refer to me as that lazy s.o.b. in Atlanta.
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Is it possible to combine the signon & chg Pwd screens

Post by Alex »

Using images vs. panels should have nothing to do with this. It is likely related to overlay/assume properties on the record format. I would check there.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests