Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Adxstudio - Customer Portal - Remember me doesn't work

(0) ShareShare
ReportReport
Posted on by 160

Hi adxstudio experts,

I am in the middle of developing a Customer Portal website using Adxstudio.

For me the remember me feature doesn't work. Is there a way we enable it?

Let me know if you need more clarification. 

Thanks for your help.

Regards,
SdDev.

*This post is locked for comments

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Hi Arpit,

    Thanks. I will try this.

    Cheers.

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Yup, you caught it right. I think it is due to we are challenging the default behavior of browser and Portal.

    In this case, you will have to completely disable the Remember Password functionality of Portal and build your own logic to save the username in cache.

    Just a thought,

    1. Store username value in Local storage on Keyup event of username field. (refer https://www.w3schools.com/html/html5_webstorage.asp to know more about local storage in JS)

    2. Give JS confirmation box on Homepage (as soon as user login) to ask user, whether he/she wants to save the username or not. If user click on Yes, keep it in localstorage otherwise make it blank.

    3. Now every time on load of Sign Page you will have to check whether any value contain in localstorage for username key or not. If yes then autopopulate it in username field.

    Hope you understood.

    Cheers

    Arpit

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Hi Arpit,

    Could you please help me with this issue?

    community.dynamics.com/.../249526

    Regards,

    SdDev

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Hi Arpit,

    The script works for me now, I didn't deploy my changes correctly.

    One thing I noticed, whenever I remove the contents on the username field and try to use the auto-update option(i) for the username field, the password to that username is automatically populated.

    (i)Home_A000B700_-Customer-Portal-_2D00_-Username-dropdown.png

    So the script is only working when the window is loaded for the first time but if any user has saved their credentials on the browser they could be able to get the password populated by doing the above trick. 

    Regards,
    SdDev


  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Hello,

    You cannot restrict the Save password popup, though you can disable it at your browser settings. But you cannot tell every user to change the settings at every browser.

    Better option is to use the code (I mentioned in my last post) which will clear the Password value on load of Login Page.

    It's working fine at my end, not sure why this code is not working for you ? Couple of ques I would like to ask here:

    • Did your Remember Password functionality is working fine now ?
    • Do F12 and check is there any error message being captured at browser Console ?
    • Make sure you have performed all the steps exactly what I have been instructed ?

    Cheers

    Arpit

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Hi,

    The above method doesn't work.

    Even if the remember me checkbox is enabled or not, the save password option shows up from the top. 
    Not sure if the script in the content snippet is helping here. 

    Let me know if you need more clarifications.

    Regards,
    SdDev.

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Save only username instead of password is not possible at browser level. Browser usually saves both username and password.

    Although you can incorporate this functionality in Adxstudio or CRM Portal by performing below mentioned steps:

    Create a new Content Snippet (Portal > Content Snippets) record in your CRM instance with below details:

    Name - Account/SignIn/PageCopy

    Website - <yourwebsitename>

    Type - HTML

    Value (HTML) - 

    <script>

    $(window).load(function() {
    $('#Password').val('');

     })

    </script>

    Please mark this answer verified if it solves your problem

    Cheers

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Thanks for your response, Arpit.

    Is there a possibility to remember username instead of Password?

    At the moment, it remembers both.

    Does adxstudio has the feature to do that or is there a way to customize this functionality?

    Regards,

    SdDev.

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Adxstudio - Customer Portal - Remember me doesn't work

    Hello,

    1. Make sure the below site setting (Portals > Site Settings) is enabled in your CRM instance:

    Authentication/Registration/RememberMeEnabled

    2. If you check the 'Remember Me' checkbox, As soon as you login on Portal, your browser ask permissions to Save your Password in cache, if you ignore that message or cancel it, browser does not store it in cache. And in this case Remember Password functionality does not work.

    Please see below screenshots to enable Remember Me setting at browser level:

    61141.1.PNG

    61141.1.PNG

    Please mark this answer as verified if it solves your problem. Thanks

    Cheers.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans