We use the below couple of methods for login/logout. As you can see they rely on a form post to work, but you can probably use part of it for your project:
Btw. if you add the [RestExtension( "teacommerce" )] and [RestExtensionMethod( returnXml = false )] attributes you do not have to add anything to your restextensions.config
Using razor for membership login
Hi There,
is there anyone who knows how to make membership login by using Razor...?
Hi Rehan,
We use the below couple of methods for login/logout. As you can see they rely on a form post to work, but you can probably use part of it for your project:
/Rune
Thx Rune...
But this method ValidateUser is it Teacommerce method or custom method...?
And this code will be triggered in codebehind right...?
Aah yes.
/Rune
perfect thx...
Hi Rehan,
Where should be those codes, in which file?
Thanks.
Hi Merves,
I put it in a class that I call Base as I use it as an Umbraco rest extension. You can read about it here: http://our.umbraco.org/wiki/reference/umbraco-base/simple-base-samples
Btw. if you add the [RestExtension( "teacommerce" )] and [RestExtensionMethod( returnXml = false )] attributes you do not have to add anything to your restextensions.config
/Rune
Hi Rehan,
You could also make use of this package Razor Login or may be make use of this code.
//fuji
is working on a reply...