Aft has a customizeable login system.
Out of the box, Aft has two RPCs:
The code for each is very short. Here's login:
There are two methods on the
authenticateAs(user_id), which will generate an authentication token and inject it into the current request, as well as set it in a cookie
user(), which will return the currently authenticated user object if there is one
The login and signup RPC are just regular code, that you may rewrite to provide any additional logic that's appropriate for your application.