Browse Source

Add login

tags/v1.0.0
sylor_huang@126.com 6 years ago
parent
commit
8fe9f5a649
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/tasks/check_gitea_user.rb

+ 1
- 1
app/tasks/check_gitea_user.rb View File

@@ -4,7 +4,7 @@ class CheckGiteaUser
def call
SyncLog.sync_log("=====begin to check gitea_user======")

all_users = User.select(:id, :gitea_token, :gitea_uid, :mail, :type).where(type: "User", gitea_token: [nil, ""], gitea_uid: [nil, ""])
all_users = User.select(:id, :gitea_token, :gitea_uid, :mail, :type,:login).where(type: "User", gitea_token: [nil, ""], gitea_uid: [nil, ""])
if all_users.present?
new_password = "12345678"
all_users.each do |user|


Loading…
Cancel
Save