Allow logging in with only username

This commit is contained in:
Martin Lensment 2015-02-19 14:44:42 +02:00
parent 34a1bde3e4
commit 316f9376fe
3 changed files with 15 additions and 4 deletions

View file

@ -3,6 +3,7 @@ require 'epp_constraint'
Rails.application.routes.draw do
namespace(:epp, defaults: { format: :xml }) do
match 'session/:action', controller: 'sessions', via: :all
match 'session/pki/:action', controller: 'sessions', via: :all
post 'command/:action', controller: 'domains', constraints: EppConstraint.new(:domain)
post 'command/:action', controller: 'contacts', constraints: EppConstraint.new(:contact)