diff --git a/api/models/badges.py b/api/models/badges.py index ea3edf359..bbf5bc25e 100644 --- a/api/models/badges.py +++ b/api/models/badges.py @@ -9,7 +9,11 @@ class Badges(db.Model): id = db.Column(db.String(100), primary_key=True) image = db.Column(db.String(100), nullable=False) csv = db.Column(db.String(100), nullable=False) - text_color = db.Column(db.String(100), nullable=False) + font_color_1 = db.Column(db.String(100), nullable=False) + font_color_2 = db.Column(db.String(100), nullable=False) + font_color_3 = db.Column(db.String(100), nullable=False) + font_color_4 = db.Column(db.String(100), nullable=False) + font_color_5 = db.Column(db.String(100), nullable=False) badge_size = db.Column(db.String(100), nullable=False) download_link = db.Column(db.String) image_link = db.Column(db.String) diff --git a/api/requirements.txt b/api/requirements.txt index 235536b22..7f642713a 100644 --- a/api/requirements.txt +++ b/api/requirements.txt @@ -52,7 +52,7 @@ rsa==3.4.2 six==1.11.0 SQLAlchemy==1.2.7 tinycss2==0.6.1 -urllib3==1.22 +urllib3==1.24.1 webencodings==0.5.1 Werkzeug==0.14.1 marshmallow-jsonapi diff --git a/frontend/app/components/forms/signup-form.js b/frontend/app/components/forms/signup-form.js index 2345d7e4c..72d50b819 100644 --- a/frontend/app/components/forms/signup-form.js +++ b/frontend/app/components/forms/signup-form.js @@ -128,6 +128,13 @@ export default Component.extend({ $('#feedback').html(''); } } + if (document.getElementById('pwd').value == document.getElementById('pwdConfirm').value) { + document.getElementById('msg').style.color = 'green'; + document.getElementById('msg').innerHTML = 'Password match'; + } else { + document.getElementById('msg').style.color = 'red'; + document.getElementById('msg').innerHTML = 'Passwords do not match'; + } }, keyDown(event) { if (event.target.name === 'password') { diff --git a/frontend/app/templates/components/forms/signup-form.hbs b/frontend/app/templates/components/forms/signup-form.hbs index 75f971848..131289851 100644 --- a/frontend/app/templates/components/forms/signup-form.hbs +++ b/frontend/app/templates/components/forms/signup-form.hbs @@ -35,14 +35,14 @@
First Line | -Second Line | -Third Line | -Fourth Line | -Fifth Line | -
---|---|---|---|---|
First Name | -Last Name | -Position | -Organisation/Project | -Social Handle | -
Deepjyoti | -Mondal | -Mentor | -FOSSASIA | -@djmgit | -
Yash | -Ladha | -Developer | -Badgeyay | -@yashladha | -
Manish | -Devgan | -Developer | -Badgeyay | -@gabru-md | -
Parth | -Shandilya | -Developer | -Badgeyay | -@ParthS007 | -
First Line | +Second Line | +Third Line | +Fourth Line | +Fifth Line | +
---|---|---|---|---|
First Name | +Last Name | +Position | +Organisation/Project | +Social Handle | +
Deepjyoti | +Mondal | +Mentor | +FOSSASIA | +@djmgit | +
Yash | +Ladha | +Developer | +Badgeyay | +@yashladha | +
Manish | +Devgan | +Developer | +Badgeyay | +@gabru-md | +
Parth | +Shandilya | +Developer | +Badgeyay | +@ParthS007 | +
{{error.message}}
{{/each}} {{#if showProgress}} @@ -233,11 +245,15 @@