Displaying 1 result from an estimated 1 matches for "split_username".
2008 Jun 02
2
Cannot log in/authenticate within RSpec Story
...w up within the view if
!session[''username''].nil?
The login controller looks like this:
--------------------------------------------------
def login
if request.get?
session[''username''] = nil
else
# Split username on domain and alias
split_username = params[:name].split(''\\'', 2)
if split_username.length != 2
flash[:notice] = "You did not enter a properly formatted domain
and alias"
redirect_to :action => ''login''
else
# Authenticate username and password...