@auth_method = AuthSource.find(params[:id])
begin
@auth_method.test_connection
+ flash[:notice] = l(:notice_successful_connection)
rescue => text
- flash[:notice] = text
+ flash[:error] = "Unable to connect (#{text})"
end
- flash[:notice] ||= l(:notice_successful_connection)
redirect_to :action => 'list'
end
--- /dev/null
+class AddAuthSourcesTls < ActiveRecord::Migration
+ def self.up
+ add_column :auth_sources, :tls, :boolean, :default => false, :null => false
+ end
+
+ def self.down
+ remove_column :auth_sources, :tls
+ end
+end