I would modify this example to not hash the password on the client side (unless it is also being done on the server). Briefly, if you are using a secured communication protocol (SSL, for example), then there is no need to hash this here.
If anything, it's better to leave it on the server side - see this post for more info.
https://github.com/mxstbr/login-flow/blob/44b34885d0bbfac18d57bd7879f886f022817774/js/actions/AppActions.js#L51
I would modify this example to not hash the password on the client side (unless it is also being done on the server). Briefly, if you are using a secured communication protocol (SSL, for example), then there is no need to hash this here.
If anything, it's better to leave it on the server side - see this post for more info.