小编Chr*_*tro的帖子

Firebase 电子邮件验证行为

我有一个关于 firebase 电子邮件验证如何工作的问题。

案件:

  1. 我的用户登录了我的网站(使用设备 A)。
  2. 他们使用其他浏览器或设备(设备 B)创建另一个帐户,但他们使用浏览器和他已经登录的设备(设备 A)打开电子邮件验证链接。

已经登录的用户(在设备 A 中)发生了什么?firebase 是将他们注销还是只是验证新电子邮件,但仍使用当前用户登录?

firebase firebase-authentication

6
推荐指数
1
解决办法
3043
查看次数

SQLite 使用 autoindex 而不是我自己的索引

我在 UNIQUE 表中遇到 SQLite 自动索引问题。我创建了如下表。

c.execute('''CREATE TABLE user(
    id INTEGER PRIMARY KEY,
    email TEXT NOT NULL UNIQUE,
    password TEXT NOT NULL,
    name TEXT NOT NULL,
    );'''
)
c.execute('CREATE INDEX USR on user(email, password);')
Run Code Online (Sandbox Code Playgroud)

但是当我使用解释查询计划检查时,SQLite使用它自己提供的自动索引。如何避免使用我自己的索引而不是自动索引?我如何尝试:

c.execute('EXPLAIN QUERY PLAN SELECT id, name FROM social WHERE email = "a@a.com" AND password = 'password'')
Run Code Online (Sandbox Code Playgroud)

结果是:

(0, 0, 0, 'SEARCH TABLE social USING INDEX sqlite_autoindex_user_1(email=?))
Run Code Online (Sandbox Code Playgroud)

sql sqlite indexing pysqlite

3
推荐指数
1
解决办法
8462
查看次数

Gitlab公共跑步者不会运行Bower,因为以sudo运行

如何使用gitlab publicRunner在不使用sudo的情况下运行bower命令?

这是我的剧本

image: node:7
before_script:
  - npm install -g bower
  - bower install
...
Run Code Online (Sandbox Code Playgroud)

这是我从测试中得到的结果。

...
npm info ok 
$ bower install
bower ESUDO         Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You …
Run Code Online (Sandbox Code Playgroud)

gitlab bower gitlab-ci bower-install gitlab-ci-runner

2
推荐指数
1
解决办法
995
查看次数

Angular 2材料:将卡片放在一行中

我在这里做了一个简单的代码http://embed.plnkr.co/INpybaat2XZqdStsKAdy/.卡片没有在一行中呈现.如何使它在一行中呈现?谢谢.

angular-material2 angular2-material angular

1
推荐指数
1
解决办法
5569
查看次数