Skip to content

Commit

Permalink
correct small spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BClark88 committed Aug 24, 2022
1 parent 8b44aa4 commit a73ef6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/warden/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def authenticate?(*args)
result
end

# The same as +authenticate+ except on failure it will throw an :warden symbol causing the request to be halted
# The same as +authenticate+ except on failure it will throw a :warden symbol causing the request to be halted
# and rendered through the +failure_app+
#
# Example
Expand Down
6 changes: 3 additions & 3 deletions lib/warden/strategies/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def success!(user, message = nil)
@result = :success
end

# This causes the strategy to fail. It does not throw an :warden symbol to drop the request out to the failure application
# You must throw an :warden symbol somewhere in the application to enforce this
# This causes the strategy to fail. It does not throw a :warden symbol to drop the request out to the failure application
# You must throw a :warden symbol somewhere in the application to enforce this
# Halts the strategies so that this is the last strategy checked
# :api: public
def fail!(message = "Failed to Login")
Expand All @@ -147,7 +147,7 @@ def fail(message = "Failed to Login")
@result = :failure
end

# Causes the authentication to redirect. An :warden symbol must be thrown to actually execute this redirect
# Causes the authentication to redirect. A :warden symbol must be thrown to actually execute this redirect
#
# Parameters:
# url <String> - The string representing the URL to be redirected to
Expand Down

0 comments on commit a73ef6a

Please sign in to comment.