]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: modify email to empty by admin RESTful api doesn't work 16309/head
authorfang.yuxiang <fang.yuxiang@eisoo.com>
Wed, 12 Jul 2017 08:28:03 +0000 (16:28 +0800)
committerfang.yuxiang <fang.yuxiang@eisoo.com>
Thu, 13 Jul 2017 01:58:57 +0000 (09:58 +0800)
Signed-off-by: fang yuxiang fang.yuxiang@eisoo.com
src/rgw/rgw_user.h

index 7a27d0e7007939118505ec36d690278c195e22bd..2ce71645e7f2bca044a6ed2641aabf968973c512 100644 (file)
@@ -248,10 +248,7 @@ struct RGWUserAdminOpState {
   }
 
   void set_user_email(std::string& email) {
-    if (email.empty())
-      return;
-
-    /* always lowercase email address */
+   /* always lowercase email address */
     boost::algorithm::to_lower(email);
     user_email = email;
     user_email_specified = true;