Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Added strip in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Liebowitz committed Apr 12, 2018
1 parent fd70b99 commit 22966fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/features/onboarding/onboarding_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ class OnboardingController < ControllerBase
# 3) If the data is not valid, display an error message
post "#{HOME}/initial_clone_user" do
if valid_params?(params, post_parameter_list_for_clone_user_validation)
api_token = params[:clone_user_api_token]
api_token.strip!
api_token = params[:clone_user_api_token].strip
if api_token.length != 40
error_message = "Invalid API token, please ensure you entered an API token and not a password"
session[:message] = error_message
Expand Down

0 comments on commit 22966fd

Please sign in to comment.