mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fix: migrate project password decode
This commit is contained in:
@@ -44,7 +44,7 @@ class Gitea::Accelerator::MigrateService < Gitea::Accelerator::BaseService
|
||||
clone_addr: params[:clone_addr],
|
||||
repo_name: params[:repository_name],
|
||||
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])
|
||||
}
|
||||
end
|
||||
|
||||
@@ -32,7 +32,7 @@ class Repositories::MigrateService < ApplicationService
|
||||
private: params[:hidden],
|
||||
mirror: wrapper_mirror || false,
|
||||
auth_username: params[:login],
|
||||
auth_password: params[:password]
|
||||
auth_password: Base64.decode64(params[:password])
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user