>Quindi tu provi a fare login e di eccezioni non ne prendi giusto?
>Semplicemente non ti fa entrare, corretto? Se è così, secondo
>me la conn string è giusta ma ora devi anche inserire un utente
>per la login, facendo attenzione a mettere la password in binary
>come richiesto dall'applicazione
>
esatto nessun errore ma non mi fa entrare, tu che codice hai usato per creare l'utente ?
io l'ho inserito ma manualmente forse ho sbagliato quello perchè ho messo password 123456 come faccio a metterla in binary ?
forse devo usare questo ?
var user = new User()
{
Username = item.Username,
Password = EncryptedString.Create(item.Password, _encryptionService)
};
if (user.IsValid)
{
_userDataMapper.Insert(user);
GetUser createdItem = _mapper.Map<User, GetUser>(user);
return CreatedHttpResponse(createdItem.ID, createdItem);
}
return Request.CreateResponse(HttpStatusCode.BadRequest, user.ValidationErrors);