• Kuljit Singh Tomar
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

Hi, 
Is there a way to display the number of login attempts remaining when a user enters invalid password on the customer portal login page before the user account would get locked?

I was hoping to access NumberOfFailedLogins field from the User object, but the SOQL does not fetch this field upon querying even in 'without sharing' mode in the Apex controller. When I query this field via SOQL Query, it does show up, but not when the SOQL is part of the Apex controller. I am guessing its hidden from the view of unauthenticated user, but is someone able to confirm this or suggest a solution that worked for you?

Thank you! 

Cheers,

Kulit