更改: 删除组织密码加密处理
This commit is contained in:
		
							parent
							
								
									f49d5d5c3a
								
							
						
					
					
						commit
						58a02a0fda
					
				| 
						 | 
					@ -1,4 +1,5 @@
 | 
				
			||||||
class Organizations::OrganizationsController < Organizations::BaseController
 | 
					class Organizations::OrganizationsController < Organizations::BaseController
 | 
				
			||||||
 | 
					  include AesCryptHelper
 | 
				
			||||||
  before_action :require_login, except: [:index, :show, :recommend, :languages]
 | 
					  before_action :require_login, except: [:index, :show, :recommend, :languages]
 | 
				
			||||||
  # before_action :require_profile_completed, only: [:create]
 | 
					  # before_action :require_profile_completed, only: [:create]
 | 
				
			||||||
  before_action :convert_image!, only: [:create, :update]
 | 
					  before_action :convert_image!, only: [:create, :update]
 | 
				
			||||||
| 
						 | 
					@ -139,7 +140,7 @@ class Organizations::OrganizationsController < Organizations::BaseController
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def password
 | 
					  def password
 | 
				
			||||||
    params.fetch(:password, "")
 | 
					    decrypt(params[:password]) rescue ""
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def load_organization
 | 
					  def load_organization
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue