docbrown/app/errors/authentication/errors.rb
Michael Kohl 6dfabd578f
Rename SiteConfig to Settings::General (#13573)
* Rename SiteConfig

* More renaming

* Update spec

* Update mandatory settings mapping

* More renaming

* e2e test fixes

* You have a rename, and you have a rename

* Spec fix

* More changes

* Temporarily disable specs

* After-merge update

* Undo rename for migration

* undo rename of DUS

* Fix DUS

* Fix merge problem

* Remove redundant DUS

* Fix specs

* Remove unused code

* Change wrong class name

* More cleanup

* Re-add missing values to constant

* Fix constant

* Fix spec

* Remove obsolete fields

* Add accidentally removed field

* Update spec

* Move methods from Settings::General to ForemInstance

* Remove unneeded model

* Change mentions of 'site config'
2021-05-21 14:45:37 +02:00

26 lines
834 B
Ruby

module Authentication
module Errors
PREVIOUSLY_SUSPENDED_MESSAGE = "It appears that your previous %<community_name>s " \
"account was suspended. As such, we've taken measures to prevent you from " \
"creating a new account with %<community_name>s and its community. If you " \
"think that there has been a mistake, please email us at %<community_email>s, " \
"and we will take another look.".freeze
class Error < StandardError
end
class ProviderNotFound < Error
end
class ProviderNotEnabled < Error
end
class PreviouslySuspended < Error
def message
format(PREVIOUSLY_SUSPENDED_MESSAGE,
community_name: Settings::Community.community_name,
community_email: Settings::General.email_addresses[:contact])
end
end
end
end