forked from Gitlink/forgeplus
对token初始化增加了非空数量的判断
This commit is contained in:
parent
8e89be831c
commit
8aa844749f
|
@ -16,8 +16,8 @@ class Projects::CreateForm < BaseForm
|
|||
check_project_language(project_language_id)
|
||||
check_project_name(user_id, name) unless name.blank?
|
||||
check_repository_name(user_id, repository_name) unless repository_name.blank?
|
||||
check_blockchain_token_all(blockchain_token_all)
|
||||
check_blockchain_init_token(blockchain_init_token)
|
||||
check_blockchain_token_all(blockchain_token_all) unless blockchain_token_all.blank?
|
||||
check_blockchain_init_token(blockchain_init_token) unless blockchain_init_token.blank?
|
||||
end
|
||||
|
||||
def check_license
|
||||
|
|
Loading…
Reference in New Issue