What it is the problem with that? You should have right (REST) backend that support functions you need (login, register, check password, check name availability, etc). And just call rest endpoint services inside the event handlers, on service callback - modify your views/DOM/models.
↧