Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7957609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:16:32+00:00 2026-06-04T04:16:32+00:00

I am designing a basic website which access is restricted by a classic login

  • 0

I am designing a basic website which access is restricted by a classic login & password system.

I can’t decide whether I should show a different message when the user enters a non-existing login, and when he enters an invalid password for an existing account.

My first intuition would be not to show a different message, because that would give hints to potential attackers about what is wrong but doing so would sometimes makes more difficult for the user to understand his errors (perhaps he just mistyped his account login and an appropriate error message would be better). On another hand, I often heard that the account login was not a secret (as the password obivously is) and so giving information about it should not lower the security level.

Do you guys have any good practice/rationale that I should follow regarding this ?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:16:34+00:00Added an answer on June 4, 2026 at 4:16 am

    Don’t differentiate these – it is information that can be used by malicious parties.

    If they know a username is right, they already have valuable information that you have leaked.

    It is a minor inconvenience to your users why exactly the login failed, they still have to enter both username and password, after all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just learnt basic Servlets and JSP technology and am designing a simple website
I have recently uploaded a website for basic web designing tutorials with proper examples
I'm currently designing a restaurant based menu system of iPad with the basic functionality
I'm sure this is a basic OOP question -- I'm designing a message-passing system
I am required to make a website which supports some basic functions like download/upload.
Basically I have a masterpage defining the basic layout of the website. What I
Im designing a website, and often I need to present information in a nice
When designing a stock management database system for sales and purchases what would be
Im designing my school's website and I kind of want to do like a
I'm fairly new to jQuery and css, and I'm designing a small website mostly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.