fix: migrate project password decode

This commit is contained in:
yystopf 2021-08-24 18:04:17 +08:00
parent 23b8342283
commit c8b21f818d
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class Gitea::Accelerator::MigrateService < Gitea::Accelerator::BaseService
clone_addr: params[:clone_addr], clone_addr: params[:clone_addr],
repo_name: params[:repository_name], repo_name: params[:repository_name],
auth_username: params[:auth_username], auth_username: params[:auth_username],
auth_password: params[:auth_password], auth_password: Base64.decode64(params[:auth_password]),
mirror: ActiveModel::Type::Boolean.new.cast(params[:is_mirror]) mirror: ActiveModel::Type::Boolean.new.cast(params[:is_mirror])
} }
end end

View File

@ -32,7 +32,7 @@ class Repositories::MigrateService < ApplicationService
private: params[:hidden], private: params[:hidden],
mirror: wrapper_mirror || false, mirror: wrapper_mirror || false,
auth_username: params[:login], auth_username: params[:login],
auth_password: params[:password] auth_password: Base64.decode64(params[:password])
} }
end end