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

Version Path
kirgudu_base-0.0.22 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.21 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.19 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.18 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.17 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.16 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.15 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.14 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.13 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.12 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.11 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.10 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.9 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.8 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.7 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.6 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.5 app/controllers/kirgudu_base/security/email_confirmations_controller.rb
kirgudu_base-0.0.4 app/controllers/kirgudu_base/security/email_confirmations_controller.rb