Skip to content

Commit 76cd475

Browse files
committed
Validation failed: Site cannot be blank #105
1 parent bded59e commit 76cd475

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/controllers/oauth_providers_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def create
4747
flash[:notice] = l(:notice_successful_create)
4848
redirect_to oauth_providers_path
4949
else
50-
flash[:error] = oauth_provider.errors.full_messages.join(', ')
5150
@oauth_provider = oauth_provider
5251
render action: 'new'
5352
end

app/views/oauth_providers/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<% else %>
7272
<p id="oauth_options_site">
7373
<% end %>
74-
<%= f.text_field :site, value: @oauth_provider.site, title: l(:oauth_site_info), required: true, size: 40 %>
74+
<%= f.text_field :site, value: @oauth_provider.site, title: l(:oauth_site_info), size: 40 %>
7575
</p>
7676
<% if %w(Azure\ AD).include?(@oauth_provider.oauth_name) %>
7777
<p id="oauth_option_version">

0 commit comments

Comments
 (0)