Created
October 2, 2013 12:01
-
-
Save shafirov/6792630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Post("profile/p") class UpdateProfileDetails(val f: String, val l: String, e: String) : Request({ | |
authorize { | |
update(Account) { | |
firstName = f | |
lastName = l | |
email = e | |
} | |
redirect(ProfilePage(null)) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Backend for Account details form. Finds Account instance in DB and updates columns to values from POST request