CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Sep 20, 2019 7:07 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Nov 09, 2016 5:06 pm 

Joined: Fri Nov 23, 2012 11:42 am
Posts: 54
I am trying to get a basic check dialog in place for a change to a critical parameter. I have a requirement that a before a particular change can be made the current user must re-enter their password, and a user from a 'supervisors' group must enter their name and their password. See below for an image. When OK is pressed I want to revalidate both passwords and then take appropriate action.

I'm struggling to get enough visibility of how the User Management is structured to be able to put this together.

I have inspected the VisuUserMgmtDialogs.library and found that these dialogs reference the UserManagement system through dialog parameters. I haven't found out how to access what these are set to when the dialog is called, as the user management dialogs are a special case.

I have looked through the VisuUserManagement library and found the VisuUserMgmt function block, which I think has the Methods I want CheckLogin and CheckLoginWithGroupID - but I'm not sure these are correct - as I don't want to login - just check the password.

I also need to understand how users and group ID's relate. Somehow I ned to identify to the dialog which group of users is the 'supervisors ' group.

I'm not sure if I'm just not finding the relevant documentation, or reference project. Any tips much appreciated.

You do not have the required permissions to view the files attached to this post.

PostPosted: Wed Apr 25, 2018 8:08 am 

Joined: Thu Aug 15, 2013 12:52 pm
Posts: 1
Location: Schweiz
Hello David Cozens

I Need to automatic login with an existing user.
Do you have an example where i can see how to do this.

I do:
fbVisuUserMgmt : VisuUserManagement.VisuUserMgmt;
stVum_User_Act: VisuUserManagement.VUM_User;

stVum_User_Act := fbVisuUserMgmt.GetCurrentUser();

the stVum_User_Act is always empty..

will be glad if you can help me
G√ľnter Saiko

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited