+ if (params[:user][:openid_url].length > 0)
+ begin
+ session[:new_usr_name] = @user.display_name
+ @norm_openid_url = OpenIdAuthentication.normalize_identifier(params[:user][:openid_url])
+ #TODO: error messages in the openid_verify aren't correctly returned yet
+ openid_verify(@norm_openid_url, true)
+ #Will have sent the redirect_to in the if open_id_complete section of this method
+ rescue
+ flash.now[:error] = t 'user.login.openid invalid'
+ end
+ else
+ redirect_to :action => 'login'
+ end