diff options
author | Tore Darell <toredarell@gmail.com> | 2008-11-09 23:25:42 +0100 |
---|---|---|
committer | Tore Darell <toredarell@gmail.com> | 2008-11-09 23:25:42 +0100 |
commit | c86e797070972c78868eebb2ffa8e71a3dbaca75 (patch) | |
tree | 716f3424390ecd9d98400e531984d1dc7d37f345 /railties/doc | |
parent | f599c5844ed0f971a6463668393692ec03c60bd7 (diff) | |
download | rails-c86e797070972c78868eebb2ffa8e71a3dbaca75.tar.gz rails-c86e797070972c78868eebb2ffa8e71a3dbaca75.tar.bz2 rails-c86e797070972c78868eebb2ffa8e71a3dbaca75.zip |
Use SHA1 instead of MD5 in the HTTP basic example
Diffstat (limited to 'railties/doc')
-rw-r--r-- | railties/doc/guides/source/actioncontroller_basics/http_auth.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/doc/guides/source/actioncontroller_basics/http_auth.txt b/railties/doc/guides/source/actioncontroller_basics/http_auth.txt index 954b8a525e..8deb40c2c9 100644 --- a/railties/doc/guides/source/actioncontroller_basics/http_auth.txt +++ b/railties/doc/guides/source/actioncontroller_basics/http_auth.txt @@ -6,7 +6,7 @@ Rails comes with built-in HTTP Basic authentication. This is an authentication s ------------------------------------- class AdminController < ApplicationController - USERNAME, PASSWORD = "humbaba", "f59a4805511bf4bb61978445a5380c6c" + USERNAME, PASSWORD = "humbaba", "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8" before_filter :authenticate @@ -14,7 +14,7 @@ private def authenticate authenticate_or_request_with_http_basic do |username, password| - username == USERNAME && Digest::MD5.hexdigest(password) == PASSWORD + username == USERNAME && Digest::SHA1.hexdigest(password) == PASSWORD end end |