login-control

Is it possible to let my c# wpf program know if the user has a touchscreen or not?

放肆的年华 提交于 2019-11-26 17:14:33
问题 I've got an login application that has a swipe system that people only can use when they have a touchscreen. They can login by swiping their personal pattern swipe code. Is it possible to check in C# or WPF if the user has a touchscreen? Even when he isn't using touch on it at that time? 回答1: Within C# code to find out if a touch screen exists (doesn't check if its a single or multi-touch device though) by the using System.Windows.Input namespace in PresentationCore . public bool

Authentication filter and servlet for login

放肆的年华 提交于 2019-11-26 00:24:03
问题 I\'ve a filter used for the login. It performs a textual checking, on fields \"Username\" and \"Password\". If and only if the textual checking is correctly done the request goes to the Servlet. This latter performs the control that has to interact with the Database. Is this chain correct? 回答1: Preface: I gather you're using homegrown login instead of container managed login. For all ways, see How to handle authentication/authorization with users in a database? The filter (the interceptor)