Adding a bunch of tests
This commit is contained in:
parent
44c5958203
commit
f16b31f077
22 changed files with 439 additions and 105 deletions
|
@ -9,10 +9,6 @@ class SetupLocalAccountService < BaseService
|
|||
user.account.username = username
|
||||
user.account.domain = nil
|
||||
|
||||
keypair = OpenSSL::PKey::RSA.new(2048)
|
||||
user.account.private_key = keypair.to_pem
|
||||
user.account.public_key = keypair.public_key.to_pem
|
||||
|
||||
user.save!
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue