Guest Login, Permissions and Kiosk Dashboards
-
@mattfox said in Guest Login, Permissions and Kiosk Dashboards:
It's more the fact I'm trying to do multiple custom dashboards. These dashboards each possess their own login for separate users and display different data. There is no wish for them to be able to access the /ui backend as some of the dashboards coded are used for realtime data display on a tv for example.
The fact that you need display different data for different users should not preclude you from using /ui. You can hide menu items for different users, set permissions on data points and set user's home pages.
If you setup the main /ui app this way it will save you a lot of time maintaining separate custom applications.
@mattfox said in Guest Login, Permissions and Kiosk Dashboards:
However, it would be nice to be able to implement the same code for this into the custom dashboards so that users can configure an auto-login should they wish to.
If you still want to make separate applications you can copy the
autoLoginSettings
component from theui/components
folder into your custom app. You will need to register it as part of the application inapp.js
. This component just displays a username/password form and saves the credentials to local storage/cookies.The actual auto-login code is in the User service and is called from the bottom of
app.js
. You can change the prefix that it is used to store/retrieve data from local storage if needed, let me know if you do. -
@jared-wiltshire said in Guest Login, Permissions and Kiosk Dashboards:
The fact that you need display different data for different users should not preclude you from using /ui.
I wish that were the case, but I am not using angular material based components to display data in these instances and thus have had to make my own point queries to pull the data through and parse it into a format to suit the interfaces I have made.
I'll definitely take you up on that offer of changing the prefix. Chances are i'm going to need to do it at some point. -
@mattfox said in Guest Login, Permissions and Kiosk Dashboards:
@jared-wiltshire said in Guest Login, Permissions and Kiosk Dashboards:
The fact that you need display different data for different users should not preclude you from using /ui.
I wish that were the case, but I am not using angular material based components to display data in these instances and thus have had to make my own point queries to pull the data through and parse it into a format to suit the interfaces I have made.
I'll definitely take you up on that offer of changing the prefix. Chances are i'm going to need to do it at some point.OK fair enough then.
So if you look at
ngMango/ngMangoServices.js
you will see theconfig()
block configureslocalStorageServiceProvider
with a prefix. You just need to add that to the config block in yourapp.js
, this will ensure the local storage for each of your apps will work independently. -
Many thanks for dealing with my selfish whims Jared, have a great afternoon. Watch this space!
-
That appears to have done it! Thanks Jared!