mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:09:18 +08:00
Updates api_test_seeds for multiple auth_token support (#5414)
This commit is contained in:
parent
6b3aa81c11
commit
d568402102
|
@ -1,2 +1,3 @@
|
|||
User.create(name: "Test User", email: "test_user@example.com", password: "password", username: "test_user", approved: true, active: true, auth_token: "39a925803ddc658a68a7e276e558ed62", admin: true)
|
||||
ApiKey.create(key: 'test_d7fd0429940', user_id: 1, created_by_id: 1)
|
||||
user = User.where(username: "test_user").first_or_create(name: "Test User", email: "test_user@example.com", password: SecureRandom.hex, username: "test_user", approved: true, active: true, admin: true)
|
||||
UserAuthToken.generate!(user_id: user.id)
|
||||
ApiKey.create(key: 'test_d7fd0429940', user_id: user.id, created_by_id: user.id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user