```ruby
class SiteController < ApplicationController
  def members
    @key = Option.user_registration_token
  end

  def regenerate_token
    Option.update_registration_token
    redirect_to site_members_path, notice: 'Token regenerated'
  end

  def settings
    @setting = Setting.new( site_title: Option.site_title )
  end

  def update_settings
    Option.site_title = params[:setting][:site_title]
    redirect_to site_settings_path, notice: 'Setting updated'
  end
end
```

Add authentication to site controller
user
```ruby
class SiteController < ApplicationController
  before_action :authenticate_user!

  def members
    @key = Option.user_registration_token
  end

  def regenerate_token
    Option.update_registration_token
    redirect_to site_members_path, notice: 'Token regenerated'
  end

  def settings
    @setting = Setting.new( site_title: Option.site_title )
  end

  def update_settings
    Option.site_title = params[:setting][:site_title]
    redirect_to site_settings_path, notice: 'Setting updated'
  end
end
```
assistant