Developers of Open Source Software, Open Hardware, Open Knowledge in Asia
Implementing User-name Update Functionality
The Badgeyay Ember JS frontend has many features like Login and Sign up features and Login with OAuth and the most important, the badge generation feature is also up and running. Now the next important thing from User perspective is that there should be a settings panel where user can see its account details like username, Email & password and he should be able to change them if he want to.
I have implemented the setting panel in Badgeyay where user can see his account details. In this blog, I will be discussing how I implemented Update Username functionality in my Pull Request so that the User can change his username at any point of time.
Let’s get started and understand it step by step.
Generate User account component with help of ember cli.
$ ember g component user-component/user-account
Make changes in Handlebar of User Account. We will be using semantic UI form for making the changes in Handlebars.
We have configured the frontend for sending the details to backend. Now, we have to edit the endpoint so that if username is change in params, It should change the username and send the response with the updated username.