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

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

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:
Marked as answer by SAIZONOU on 2/25/2015 at 2:59 AM
Feb 25, 2015 at 10:59 AM
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();
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