Method: Merb::AuthenticationMixin::BasicAuthentication#username
- Defined in:
- lib/merb-core/controller/mixins/authentication.rb
#username ⇒ Object
Returns
- String
-
The username provided in the request.
:api: public
150 151 152 |
# File 'lib/merb-core/controller/mixins/authentication.rb', line 150 def username provided? ? @auth.credentials.first : nil end |