Skip to content
Snippets Groups Projects
Commit 2e0a38d0 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Added e-mail edit field to settings, proper format default for webfinger

parent d5e086a4
No related branches found
No related tags found
No related merge requests found
class XrdController < ApplicationController
before_action :set_default_format
def host_meta
@webfinger_template = "#{webfinger_url}?resource={uri}"
......@@ -22,6 +24,10 @@ class XrdController < ApplicationController
private
def set_default_format
request.format = 'json' if request.headers["HTTP_ACCEPT"].nil? && params[:format].nil?
end
def username_from_resource
if resource_param.start_with?('acct:') || resource_param.include?('@')
resource_param.split('@').first.gsub('acct:', '')
......
......@@ -4,6 +4,8 @@
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
= devise_error_messages!
.field
= f.email_field :email, placeholder: 'E-mail address'
.field
= f.password_field :password, autocomplete: "off", placeholder: 'New password'
.field
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment