have the ability now to update a row of direct deposit information as well as leverage the encryption routine to introduce a serious flaw

This commit is contained in:
cktricky
2014-03-15 21:58:42 -04:00
parent 9951af6170
commit 1f922916d2
4 changed files with 141 additions and 123 deletions
+15 -1
View File
@@ -4,9 +4,23 @@ class PayController < ApplicationController
end
def update_dd_info
msg = false
pay = Pay.new(
:bank_account_num => params[:bank_account_num],
:bank_routing_num => params[:bank_routing_num],
:percent_of_deposit => params[:dd_percent]
)
pay.user_id = current_user.user_id
msg = true if pay.save!
respond_to do |format|
format.json {render :json => {:hello => :world} }
format.json {render :json => {:msg => :world} }
end
end
def show
respond_to do |format|
format.json { render :json => {:user => current_user.pay.as_json} }
end
end
end