summaryrefslogtreecommitdiff
path: root/app/controllers/api/users_controller.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2018-01-31 04:44:15 -0800
committerazul <azul@riseup.net>2018-01-31 04:44:15 -0800
commitb58c2d841013ec9fc30c3c8e6dcc3ee73dccfbf4 (patch)
tree5c8c2caf8a581b215c63c93444c5b72a5175c0f8 /app/controllers/api/users_controller.rb
parenta6e0378669118feeb0c42b6282b0b469fb11ad8f (diff)
parenta55cc3653de22d868ade5303918280a38e8e9fe8 (diff)
Merge branch 'feature/different-keytypes' into 'master'
couch: add identity view to get all keys See merge request leap/webapp!61
Diffstat (limited to 'app/controllers/api/users_controller.rb')
-rw-r--r--app/controllers/api/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb
index 65b80c7..eda37e8 100644
--- a/app/controllers/api/users_controller.rb
+++ b/app/controllers/api/users_controller.rb
@@ -112,7 +112,7 @@ module Api
PgpKey.new(key).tap do |key|
if key.valid?
identity = Identity.for(@user)
- identity.set_key(:pgp, key)
+ identity.set_key(:pgp, key.to_s)
identity.save
end
end