Use undefined provider for local providers.

This commit is contained in:
Julien Fontanet 2015-10-28 12:38:55 +01:00
parent fa1096a6ba
commit d56cca7873

View File

@ -1119,7 +1119,7 @@ export default class Xo extends EventEmitter {
}
return result.username
? await this.registerUser('local', result.username)
? await this.registerUser(undefined, result.username)
: await this.getUser(result)
} catch (error) {
// Authentication providers may just throw `null` to indicate