Skip to content

Commit

Permalink
ユーザー新規作成処理を実装しよう
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yoshiii committed Jul 17, 2022
1 parent a6dd4de commit 26f9938
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/SignupView.vue
Expand Up @@ -74,8 +74,12 @@ export default {
firebase
.auth()
.createUserWithEmailAndPassword(this.email, this.password)
.then((result) => {
.then(async (result) => {
console.log("successs", result);
await result.user.updateProfile({
displayName: this.name,
});
console.log("updateuser", this.name);
})
.catch((error) => {
console.log("fail", error);
Expand Down

0 comments on commit 26f9938

Please sign in to comment.