Sha256: 6b276c22336a4501c1cfbd4de0fdb90cc1cf662fe29ca370235b3c9175adb1a3
Contents?: true
Size: 844 Bytes
Versions: 18
Compression:
Stored size: 844 Bytes
Contents
module KirguduBase module Security class AuthenticationsController < ::KirguduBase::ApplicationController def confirm local_data = { errors: [], messages: [] } local_data[:email] = params[:email] local_data[:code] = params[:code] render end def process local_data = { messages: [], errors: [] } transaction_result = true if params[:email] user = ::KirguduBase::Security::User.get_by_email(params[:email]) if user confirmation = ::KirguduBase::Security::EmailConfirmation.where else local_data[:errors] = "User With This Email Not Found" transaction_result = false end else local_data[:errors] = "Email Not Supplied" transaction_result = false end if transaction_result else end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems