This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.forms import EmailField | |
| from django.utils.translation import ugettext_lazy as _ | |
| from django.contrib.auth.models import User | |
| from django.contrib.auth.forms import UserCreationForm | |
| class UserCreationForm(UserCreationForm): | |
| email = EmailField(label=_("Email address"), required=True, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const functions = require('firebase-functions'); | |
| const admin = require('firebase-admin'); | |
| admin.initializeApp(); | |
| exports.sendLeaderboardMesssage = functions | |
| .database | |
| .ref('/leaderboard/{position}') | |
| .onUpdate((change) => { | |
| const oldPlayer = change.before.val(); |