mirror of
https://github.com/penpot/penpot.git
synced 2025-02-09 00:28:20 -05:00
📎 Fix linter issues on backend
This commit is contained in:
parent
757cee67fb
commit
06bce92cdc
3 changed files with 64 additions and 65 deletions
|
@ -356,9 +356,9 @@
|
||||||
(defn register-profile
|
(defn register-profile
|
||||||
[{:keys [conn sprops session] :as cfg} {:keys [token] :as params}]
|
[{:keys [conn sprops session] :as cfg} {:keys [token] :as params}]
|
||||||
(let [claims (tokens/verify sprops {:token token :iss :prepared-register})
|
(let [claims (tokens/verify sprops {:token token :iss :prepared-register})
|
||||||
params (merge params claims)]
|
params (merge params claims)
|
||||||
|
|
||||||
(let [is-active (or (:is-active params)
|
is-active (or (:is-active params)
|
||||||
(not (contains? cf/flags :email-verification))
|
(not (contains? cf/flags :email-verification))
|
||||||
|
|
||||||
;; DEPRECATED: v1.15
|
;; DEPRECATED: v1.15
|
||||||
|
@ -424,7 +424,7 @@
|
||||||
(send-email-verification! conn sprops profile)
|
(send-email-verification! conn sprops profile)
|
||||||
(with-meta profile
|
(with-meta profile
|
||||||
{::audit/replace-props (audit/profile->props profile)
|
{::audit/replace-props (audit/profile->props profile)
|
||||||
::audit/profile-id (:id profile)}))))))
|
::audit/profile-id (:id profile)})))))
|
||||||
|
|
||||||
(s/def ::register-profile
|
(s/def ::register-profile
|
||||||
(s/keys :req-un [::token ::fullname]))
|
(s/keys :req-un [::token ::fullname]))
|
||||||
|
|
|
@ -10,14 +10,13 @@
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.db :as db]
|
[app.db :as db]
|
||||||
[app.loggers.audit :as audit]
|
[app.loggers.audit :as audit]
|
||||||
|
[app.rpc.doc :as-alias doc]
|
||||||
[app.rpc.mutations.teams :as teams]
|
[app.rpc.mutations.teams :as teams]
|
||||||
[app.rpc.queries.profile :as profile]
|
[app.rpc.queries.profile :as profile]
|
||||||
[app.tokens :as tokens]
|
[app.tokens :as tokens]
|
||||||
[app.rpc.doc :as-alias doc]
|
|
||||||
[app.tokens.spec.team-invitation :as-alias spec.team-invitation]
|
[app.tokens.spec.team-invitation :as-alias spec.team-invitation]
|
||||||
[app.util.services :as sv]
|
[app.util.services :as sv]
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]))
|
||||||
[cuerdas.core :as str]))
|
|
||||||
|
|
||||||
(s/def ::iss keyword?)
|
(s/def ::iss keyword?)
|
||||||
(s/def ::exp ::us/inst)
|
(s/def ::exp ::us/inst)
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
(ns app.rpc.mutations.verify-token
|
(ns app.rpc.mutations.verify-token
|
||||||
(:require
|
(:require
|
||||||
[app.db :as db]
|
[app.db :as db]
|
||||||
[app.tokens :as tokens]
|
|
||||||
[app.rpc.doc :as-alias doc]
|
|
||||||
[app.rpc.commands.verify-token :refer [process-token]]
|
[app.rpc.commands.verify-token :refer [process-token]]
|
||||||
|
[app.rpc.doc :as-alias doc]
|
||||||
|
[app.tokens :as tokens]
|
||||||
[app.util.services :as sv]
|
[app.util.services :as sv]
|
||||||
[clojure.spec.alpha :as s]))
|
[clojure.spec.alpha :as s]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue