Add shortcut support
This commit is contained in:
@@ -54,6 +54,7 @@ module Adamantium
|
|||||||
private
|
private
|
||||||
|
|
||||||
def verify_token(access_token)
|
def verify_token(access_token)
|
||||||
|
return %i[create update delete undelete media] if settings.shortcut_key == access_token
|
||||||
return %i[create update delete undelete media] if Hanami.env == :development || Hanami.env == :test
|
return %i[create update delete undelete media] if Hanami.env == :development || Hanami.env == :test
|
||||||
|
|
||||||
resp = HTTParty.get(settings.micropub_token_endpoint, {
|
resp = HTTParty.get(settings.micropub_token_endpoint, {
|
||||||
|
@@ -30,6 +30,8 @@ module Adamantium
|
|||||||
|
|
||||||
setting :omdb_api_key, default: nil
|
setting :omdb_api_key, default: nil
|
||||||
|
|
||||||
|
setting :shortcut_key, default: nil
|
||||||
|
|
||||||
setting :from_email, default: nil
|
setting :from_email, default: nil
|
||||||
setting :dayone_email, default: nil
|
setting :dayone_email, default: nil
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user