Class: KirguduBase::Security::EmailConfirmationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/kirgudu_base/security/email_confirmations_controller.rb

Instance Attribute Summary

Attributes included from Controllers::DynamicPages::Class

#kirgudu_controller_options

Instance Method Summary collapse

Methods inherited from ApplicationController

#add_new_breadcrumb, #authenticate_user, #breadcrumbs_length, #check_locale_parameter, #class_strong_params, #current_user, #current_user=, #current_user_clear_info, #current_user_query_db, #current_user_set_info, #current_user_symbol, #entry_class, #fake_counter_iterate, #get_best_locale, get_class_hierarchy, #get_class_hierarchy, #get_class_variable, #get_filters_for_list, #get_kirgudu_base_authentication_controller_setting, #get_layout_path, get_method_latest_result, #get_template_path, #get_url_for_login, #get_url_for_logout, #get_url_for_restore_password_code, #get_url_to_redirect_for_authentication, #get_view_default_path, #get_view_path, #initialize_global_variables, #kb_breadcrumbs, #page_for_default_redirection_after_login, #prepare_applications_data, #prepare_breadcrumbs, #process_transaction_injections, #render, #render_breadcrumbs, #render_page_e404, #set_content_type, #set_i18n_locale_from_params, #string_logger, #string_logger=, #system_logging_init, #system_logging_write_event, #to_i18n, to_i18n, #to_route_path, to_route_path, to_url_for, #to_url_for, #update_url_with_ajax_referer_url

Methods included from Controllers::DynamicPages::Class

#get_kb_entry_class, #get_kb_home_controller, #get_kb_home_path, #get_kb_menu, #get_kb_option, #get_kb_page, #get_kb_parent_controller_data, #get_kb_template, #get_kb_view_path, #kb_entry_class, #kb_home_controller, #kb_home_path, #kb_management_settings, #kb_menu, #kb_page, #kb_parent_controller, #kb_template_path, #kb_views_paths_404_page, #kb_views_paths_dashboard, #kb_views_paths_delete, #kb_views_paths_edit, #kb_views_paths_entry_not_found, #kb_views_paths_index, #kb_views_paths_layout, #kb_views_paths_management, #kb_views_paths_new, #kb_views_paths_show, #kb_views_paths_sorting

Methods included from Controllers::DynamicTransactions

#get_kb_transaction_injections, #kb_transaction_injection

Methods included from Controllers::ObligatoryFilters

#get_kb_obligatory_filters, #kb_obligatory_filter

Methods included from ApplicationHelper

assign_portal_to_all_models, assign_portal_to_models_of_class, #build_query_string_params, #get_flash_message, #kb_auth_form_for, #kb_dynamic_form_for, #kirgudu_form_for, #print_flash_message, #print_flash_notice, #print_property, #render_html, #render_html1, #render_json, #render_json_access_denied, #render_json_error, #render_json_need_authentication, #render_json_not_found, #render_json_ok, #render_json_page_404, #render_liquid, #render_redirect, #russian_month_labels, #security_login, #security_logout, #web_chu_form_for

Methods included from BreadcrumbsHelper

included

Methods included from UrlHelper

#url_for, #with_subdomain

Instance Method Details

#confirmObject



3
4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/kirgudu_base/security/email_confirmations_controller.rb', line 3

def confirm
  local_data = {
    errors: [],
    messages: []
  }
  local_data[:email] = params[:email]
  local_data[:code] = params[:code]

  render

end

#processObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'app/controllers/kirgudu_base/security/email_confirmations_controller.rb', line 15

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