Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Firebase 3.0 Email/Password sign up

$
0
0

@chrisdeso wrote:

Long time lurker – first time poster.

I can't for the life of my figure out how to implement a sign up form with Firebase 3.0 and ember.

I've worked through Yoember and have been able to use authentication for sign in with Google, but I can't do so with email/password.

Here's what my sign-up controller looks like

import Ember from 'ember';

export default Ember.Controller.extend({
  firebaseApp: Ember.inject.service(),

  actions: {

createUser(email, pass) {
  const auth = this.get('firebaseApp').auth();
  auth.createUserWithEmailAndPassword(email, pass).then((userResponse) => {
    const user = this.store.createRecord('user', {
      id: userResponse.uid,
      email: userResponse.email
    });
    return user.save();
  });
}

  }

});

Let me know if you need any of my other code snippets, but my error message is EmberError {description: undefined, fileName: undefined, lineNumber: undefined, message: "Nothing handled the action 'signUp'. If you did ha…er in a controller, causing the action to bubble.", name: "Error"…}

I'm using Torii.

Again, please let me know if y'all need more information.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles