Skip to content

Commit 343e06d

Browse files
committed
use username as email when missing
1 parent c0cbd26 commit 343e06d

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

OpenFlow/src/OAuthProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ export class Account {
701701
// user.roles = roles;
702702

703703
// node-bb username hack
704+
if(user.email == null || user.email == "") user.email = user.username;
704705
if (user.name == user.email && user.email.indexOf("@") > -1) {
705706
user.name = user.email.substr(0, user.email.indexOf("@") - 1);
706707
}

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.1.185",
3+
"version": "1.1.186",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.185
1+
1.1.186

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.1.185",
3+
"version": "1.1.186",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)