Skip to content

failure to login message? #25

Description

@cookie33

Hi,

In the old config.ru.example ( < 2.5.x ) it stated:

use Rack::Auth::Basic do
  |username, password|
  result =
    EPIC::USERS[username] && (
      EPIC::USERS[username][:digest] == Digest::MD5.hexdigest
        [ username, EPIC::REALM, password ] * ':'
      ).to_s    
    )
  # TODO: I think the following 3 lines are redundant, because ...
  unless result 
    LOGGER.warn("Unauthorized. #{username} provided wrong ...
  end
  result
end

In the new one it only states:

use Rack::Auth::Basic do
  |username, password|
  result = 
    EPIC::USERS[username] && (
      EPIC::USERS[username][:digest] == Digest::MD5.hexdigest(
        [ username, EPIC::REALM, password ] * ':'
      ).to_s
    )
  result
end 

There is no warning/message if the login fails in the restful interface. It gives only back the box to login again. Is that intentional?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions