about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-01 17:23:46 +0200
committerThibaut Girka <thib@sitedethib.com>2018-09-01 17:23:46 +0200
commita74a7d5fe30dad5e2e4a3ac5e199ce18db75fe59 (patch)
treeb3754c8ac02614e821c6680cf31ecb64389aca36 /lib
parentcc7adf7e842b662fafc1eb1a9de3b7a450abbd1a (diff)
parent0e661dd2e9f0fb0b87d686bec58782881b054fd9 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'lib')
-rw-r--r--lib/devise/ldap_authenticatable.rb3
-rw-r--r--lib/mastodon/version.rb2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/devise/ldap_authenticatable.rb b/lib/devise/ldap_authenticatable.rb
index 534c7a851..6903d468d 100644
--- a/lib/devise/ldap_authenticatable.rb
+++ b/lib/devise/ldap_authenticatable.rb
@@ -25,11 +25,12 @@ module Devise
           )
 
           filter = format(Devise.ldap_search_filter, uid: Devise.ldap_uid, email: email)
+
           if (user_info = ldap.bind_as(base: Devise.ldap_base, filter: filter, password: password))
             user = User.ldap_get_user(user_info.first)
             success!(user)
           else
-            return fail(:invalid_login)
+            return fail(:invalid)
           end
         end
       end
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb
index d07108ad4..e4944ba67 100644
--- a/lib/mastodon/version.rb
+++ b/lib/mastodon/version.rb
@@ -21,7 +21,7 @@ module Mastodon
     end
 
     def flags
-      'rc1'
+      'rc2'
     end
 
     def to_a