ced2a932d7
This gives admins the ability to send a `skip_confirmation` flag in the `POST /users/:id/email` API endpoint to skip the verification step and assume the given e-mail address is verified. Closes #50876
12 lines
251 B
Ruby
12 lines
251 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Emails
|
|
class BaseService
|
|
attr_reader :current_user
|
|
|
|
def initialize(current_user, params = {})
|
|
@current_user, @params = current_user, params.dup
|
|
@user = params.delete(:user)
|
|
end
|
|
end
|
|
end
|