Changes for page Your First Stateful Project
Last modified by Bastian Triller on 2021/08/07 03:59
From version 14.1
edited by Pascal Robert
on 2012/12/12 07:57
on 2012/12/12 07:57
Change comment:
There is no comment for this version
To version 16.1
edited by Pascal Robert
on 2012/12/12 07:59
on 2012/12/12 07:59
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -138,9 +138,10 @@ 138 138 139 139 {{code}} 140 140 public static Author validateLogin(EOEditingContext editingContext, String _emailAddress) { 141 - //TODOAuto-generatedmethodtub142 - null;141 + Author user = Author.fetchAuthor(ERXEC.newEditingContext(), Author.EMAIL.eq(_emailAddress)); 142 + return user; 143 143 } 144 + 144 144 {{/code}} 145 145 146 146 Next: we need to add a component to present the login form to the user. Right-click on the **Components** folder in the project, and select **New** > **WOComponent**. Change the name of the component to be **AdminMainPage** and change the superclass to **er.extensions.components.ERXComponent**.