* Bump rubocop from 1.17.0 to 1.18.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.17.0 to 1.18.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.17.0...v1.18.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * yarn install * Fix violations * Restore the default aligned setting * Trigger Travis CI * Escape HTML Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: rhymes <github@rhymes.dev>
26 lines
926 B
Ruby
26 lines
926 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: ForemInstance.email)
|
|
end
|
|
end
|
|
end
|
|
end
|