This project has moved. For the latest updates, please go here.

Problem when UserName begin with space character

Feb 20, 2015 at 11:10 AM
Edited Feb 21, 2015 at 2:45 PM
Hi,

I've got your pack ver 1.3.2.0
If the UserName in membership request begin with a the space caracter we 've got a problem with the account.
Image
In database the Ntname is :
i:0#.f|fbamembershipprovider|Espace
AND
i:0#.f|fbamembershipprovider| Espace
so there are some errors when I use NTname in my programs and also in other uses

thanks
Coordinator
Feb 23, 2015 at 2:52 PM
There's an issue to track this, so that leading and trailing spaces will be removed in a future version of the fba pack:

https://sharepoint2010fba.codeplex.com/workitem/824
Marked as answer by SAIZONOU on 2/25/2015 at 2:59 AM
Feb 25, 2015 at 10:59 AM
Ok
I put this following script near FBA Membership Request Web Part :
// JavaScript Document
<script type="text/javascript">
 jQuery(document).ready(function () {
    var InputObj = jQuery("input[name*='$CreateUserStepContainer$UserName']");
     InputObj.blur(function() {
        var Iden = InputObj.val();
        InputObj.val(jQuery.trim(Iden));
     });
 });
</script>
I also changed my authentification code with "TRIM" on User id and Passeword
Marked as answer by SAIZONOU on 2/25/2015 at 2:59 AM