{"id":253,"date":"2016-03-04T09:45:04","date_gmt":"2016-03-04T14:45:04","guid":{"rendered":"http:\/\/salzlechner.com\/dev\/?p=253"},"modified":"2016-03-11T06:47:19","modified_gmt":"2016-03-11T11:47:19","slug":"webapp-login","status":"publish","type":"post","link":"http:\/\/salzlechner.com\/dev\/2016\/03\/04\/webapp-login\/","title":{"rendered":"WebApp Login"},"content":{"rendered":"<p>A DataFlex WebAPP project by default adds a login screen. This login screen is created by default in login.wo.<\/p>\n<p>The peLoginMode property of the oWebApp object defines the type of login<\/p>\n<p>It can either one of the following<\/p>\n<ul>\n<li>lmLoginRequired<\/li>\n<li>lmLoginSupported<\/li>\n<li>lmLoginNone<\/li>\n<\/ul>\n<p>lmLoginNone obviously lets the application know that no login is required for the application.<\/p>\n<p>lmLoginRequired ensures that no pages in the application can be access without a valid active login<\/p>\n<p>lmLoginSupported is a hybrid that allows access without a login but still offers a login capability that can be used to offer different information based on user rights<\/p>\n<p>to find out if at the current time a user is logged in or a user does not require a login you can call the ValidLogin function of the oWebApp object<\/p>\n<pre class=\"lang:default decode:true \">Get ValidLogin of oWebApp to bIsValid<\/pre>\n<p>This will return true if either the app does not require a login or if it does and the user is logged in<\/p>\n<p>to find out if a user is logged in regardless of what the login mode is you can call the following<\/p>\n<pre class=\"lang:default decode:true \">Get IsLoggedIn of ghoWebSessionManager to bIsLoggedIn<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick overview on the login features of WebApp<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","ngg_post_thumbnail":0,"footnotes":""},"categories":[27],"tags":[],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-dataflex-webapp"],"_links":{"self":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":3,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"predecessor-version":[{"id":263,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/253\/revisions\/263"}],"wp:attachment":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}