Skip to content
Snippets Groups Projects
Commit 69218377 authored by ng's avatar ng
Browse files

fix #79 - properly redirect if no data is submitted

parent 43d84300
No related branches found
No related tags found
1 merge request!24fix #79 - properly redirect if no data is submitted
Pipeline #
......@@ -22,7 +22,8 @@ class KeysController < ApplicationController
elsif params[:keyfile].present?
input = params[:keyfile].read
else
redirect_to :index, alert: 'No input found'
flash[:alert] = 'No input found'
return redirect_to action: 'index'
end
if ! input.match('BEGIN PGP')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment