Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

Login Problem

Avatar

Level 2

Hi,

I have the code below but I'm unable to obtain the name or the login working. Is always showing me Anonymous Surfer when I'm logged as admin or author.

Do you know what I'm doing wrong?

 

<%@page import="com.day.cq.personalization.UserPropertiesUtil" %><%@taglib prefix="personalization" uri="http://www.day.com/taglibs/cq/personalization/1.0" %><%@page session="false"%><% %><%@include file="/libs/foundation/global.jsp" %><% %><%@page pageEncoding="UTF-8"%> <cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/> <div> Hello, <div><personalization:contextProfileProperty propertyName="formattedName"/></div> <form method="POST" action="/j_security_check" enctype="multipart/form-data"> <input type="text" name="j_username" id="j_username"> <input type="text" name="j_password" id="j_password"> <input type="submit" value="Submit"> </form> </div>
1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10

Here is good article on your use case at adobe https://helpx.adobe.com/experience-manager/using/secure_sites.html