Commit 5227e2c1 authored by Shashank Kumar's avatar Shashank Kumar

Integrated with SignUp and Dashboard

parent 64601ed9
# Project Tools
modules/encryption/tools/all_tools/gnupg_home
# Python
*.pyc
/libs/garden
......
......@@ -36,6 +36,7 @@ if __name__ == '__main__':
# Importing modules
from modules.dashboard.dashboard import Dashboard
from modules.signup.signup import SignUp
from modules.signin.signin import SignIn
# Fixing touch issue with some platforms
Config.set('input', 'mouse', 'mouse')
......
This is a revocation certificate for the OpenPGP key:
pub rsa2048 2018-07-02 [SCEA]
15BE5CE31545DD3FD3C322E7938BA9EDFBCA4180
uid Autogenerated Key <realslimshanky@justanotherone>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iQE2BCABCAAgFiEEFb5c4xVF3T/TwyLnk4up7fvKQYAFAls6CmsCHQAACgkQk4up
7fvKQYBu2wf/R+VX1ks8bbapzkstHTHCyo/BTeX4lq4ulvSTziz3lC6Yd99YvuFa
CXTFzwvPRFEOfolJkOlytbCjXnN+7REVdGBQoflM/3Nu9J+4eRm6Us2Lq7+4nakW
XynBV2OzKfm6pIaR3rSIaFVZ2+3xpudQUsnhEEQzh2eBRCC2v7SNqW4JjNBUz4Ux
DbDo6CU28GyX9Vv8NdsO50kTfU0YksGF5sWZDbqMpbNtRXO+Wk4EEe5mF2NlFYep
848q8hCGSahdKSBO1nwoAiMBxh5NLD6dbM99a57BRP9QosskxDGe0yGkW6+mGP0h
ADsxm8ohEAJ0JiwXmNlw9NzBA2CitlMM0w==
=Qcoq
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-03 [SCEA] [expires: 2018-12-12]
25C235F9F77E0FCCDFC3B74352A21245428FB4AD
uid Shashank (my first key pair) <abc@cde.com>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQQlwjX5934PzN/Dt0NSohJFQo+0rQUCWzsqZQIdAAAKCRBSohJF
Qo+0rWIFBADWVmS3W4z+8z2dvKvpnFydkXuXVd+1x0Qk6DO8Wu43XN16rlZGY98j
GayPac9ujD27uC9R9zRS2hrhW7EMFtsiJ2TUpWe7gMVpfl08HU9pYdeI+5yL5nOq
w0Dj5LzCwpt/rSWq4F0o72xFo6GSMSBA2b871HWfyAU3Nq5QodSX/Q==
=Nyjn
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-02 [SCEA] [expires: 2020-12-12]
76E8E0ADC02E018139817AC7ADDB91B191AA7AA0
uid Mr. Shashank Kumar (My first key pair) <shashankkumar@gmail.com>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQR26OCtwC4BgTmBeset25Gxkap6oAUCWzowagIdAAAKCRCt25Gx
kap6oJ8AA/9y0BKWBy4ZXJwX1A2S2JwA8wzGiOf76J185LZRKFVO0jEVri5QHJmS
BgQGRlma+beWDbT7bGTeHxcsfaN0Knrk2dVCKVrzCvbtc1ANaaZWF5HKVdxOuJDh
XvI8y9ItuxooAqGZVmhBHiSGicz9EbEY3O051DCUsHbg1oldjIeg2Q==
=aGy0
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa2048 2018-07-02 [SCEA]
A93FB8B8B4AF9C16EB2E6272CA5809F9E3BE433F
uid Autogenerated Key <realslimshanky@justanotherone>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iQE2BCABCAAgFiEEqT+4uLSvnBbrLmJyylgJ+eO+Qz8FAls6Co0CHQAACgkQylgJ
+eO+Qz82AAgArJ2RBsl9yrFwg2ASOIoAVlDj/c3v49ZtDU0ONerpoOypUeNAcKGe
2xlVqMyftsQcQw7E0yimoPGGoxoxAnX0+OlCL63PCnFSBUMubr5Mjk3or7uEr/CA
2KH/T82mLPoE+kU3q/tghKZDPaLNLTd8o55EOGXr0dy3bdEbBpp1Wt6DZbyFZSV4
VayRio9QRce/b5GYvIlXbNK0KDNLm+8jIfzg7GMTk4GGeUg/J4RvbFktCxqXS7EZ
fp/aoeQ7ikBLWSJ0dmkxoQoHugp42OXpMsfa1rbF1gbrV71gENuh3NZgJijm6+4z
Vi2wOwlv1+3f/RcJtXmuik5ablzDpLORYA==
=5EaO
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa2048 2018-07-02 [SCEA]
AB2FC4FF5CA025515DB4C51E2D0BCAA0C3EECF52
uid Autogenerated Key <realslimshanky@justanotherone>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iQE2BCABCAAgFiEEqy/E/1ygJVFdtMUeLQvKoMPuz1IFAls6CbkCHQAACgkQLQvK
oMPuz1K1Zgf8DRQMrsOeTary0mRl2vNzRWZFCBOmZlhZ2cMSU6gM2pX4L/OJbRQp
xpRMBBR8hYW0waIZ2euvbbsCrBrJUPow+y1RheV7uhVde4s/fXTrDm+uTCbZG4mY
yWP2ApFo7JEIVT03kIiY1HMD025L3KJoJ1OGf0s9WPOriTeu3uaCJySmUya1Wbse
IgfCkysHYShj9tI+Y3bRyonevAO8w53LAJ60tWuloTK5xnRg/uiCDhIamgXUaR6V
WyiqP1VWjigUN7NiYVHXU9ubvMx+lAQP/Mp/uQ6p92810dqUsjjtW7QgHVgPsYDb
LVaj7uItPDSmasfXAQql8LWB1ctjwYy+JQ==
=Djm7
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-02 [SCEA] [expires: 2018-12-12]
B1F41E62EECFC8A6A536355800C83E2B75F5C44C
uid Shashank (a) <a@a.o>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQSx9B5i7s/IpqU2NVgAyD4rdfXETAUCWzop2QIdAAAKCRAAyD4r
dfXETCPxBACBuqFz92jq90jIybdr2KnuJGIP1jhOo/8PVLVaFEqtVGCovEeQV11H
h0Rm2oKiPz2/RNpcUtZvbfB9382FPZH9Gnqh40GAWMcwiZvu7fBP3vXQVpeQDwfW
gwdVB30wB+7JZw/JmHgb+VBhvXI3BosH8quNB/JOIyfT1WD2jKuS9A==
=uqjt
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-02 [SCEA] [expires: 2018-07-12]
BA06FB796FFF1C2A011E30D5D5F7A2E82659DB85
uid a (qwer) <a@a.c>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQS6Bvt5b/8cKgEeMNXV96LoJlnbhQUCWzosHQIdAAAKCRDV96Lo
JlnbhTzkBACxmmqIBcqdwdSm9uSrwua+y5zOdV5/GLIiB/mo8ORhBiD1ZbMhMtXz
YdJVJ7LgLM3cTynteClk5x2k4pUdjym0xtNAfzhTQKdRpHS2B4ezeF1zQcxNd+2t
4/wPSb1eIXRllEMZvQkgIrt8zF55UXo+edaY3ldKNoa3noNDiqv57g==
=zCSa
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-03 [SCEA] [expires: 2020-12-12]
C795E6FAD5CD9CA54941D1A51FB427B0D736B6F8
uid Mr. Shashank Kumar (My first key pair) <shashankkumar@gmail.com>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQTHleb61c2cpUlB0aUftCew1za2+AUCWzsp/AIdAAAKCRAftCew
1za2+ObVA/9oWSRz5rSAO1Om5AEhMgB8w7wan+vD8I6inZefkrgKaQpKTPrQRvh9
/xoid3ooBb7otgWFXpQh3BAqN8p8HNnW9VOKU8UxPx0Nj81+QRuXH+xc/PApNmyF
J8mvO7thuX+TQ5hgtZrBFJxCm/jeiAQVJ276eNvmDRV67znoZaMALg==
=RxaJ
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-03 [SCEA] [expires: 2020-12-12]
DD59BCD2E2614C5D76C65845517899EA4BBE4BE0
uid Mr. Shashank Kumar (My first key pair) <shashankkumar@gmail.com>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQTdWbzS4mFMXXbGWEVReJnqS75L4AUCWzsoMgIdAAAKCRBReJnq
S75L4LEFBACYPnWPHIkIt8ZozojEyCvCTVeGKOKWLjGXHkIeJiVOr0F0yzHnVUS7
Sie9weReVMwErL31jC80ql8KrGja9CRbB+n3gWfxMY4ObL/nxsV9GTi+x5Brbt5e
7NenYPgZjVbYJYgf3aKzV02+QHBpXFZaq+DS8DiFo7+i8yz6IQYMqA==
=7dZj
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-02 [SCEA] [expires: 2018-12-10]
E94E4F06D8FA5C03779B71344C4579574DCC8847
uid Shashank (Just the first) <a@c.com>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQTpTk8G2PpcA3ebcTRMRXlXTcyIRwUCWzopNgIdAAAKCRBMRXlX
TcyIR/6YA/9tPOnK67YR9bYjeqCUBK/Dd2AeTL3e7+E1YCGgdp3jWqGXheqb47ox
YcVE898p2DINPf4HVfeLOELnUkvSh8JIHK6/ZYanXpExGDtmnvg6+yjFRyjVAlyI
2vAu6XFghimHrresphebPRxMKhL+5A4L2HePRBvKOAG+9wSQbmu0DA==
=N0gI
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-02 [SCEA] [expires: 2018-12-12]
F3DDCA888EA312616D00EB6C3AE51C5F74EBD7F0
uid S (a) <a@a.a>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQTz3cqIjqMSYW0A62w65RxfdOvX8AUCWzoqJAIdAAAKCRA65Rxf
dOvX8FXpA/9TAHsbUvFhZIPnHW5nkG0do6QH1mKeONLkdXFxCQ/CnzL9F+07iZ3L
oDm+MuGD5tSP+yXGltHuOEN+E+Lwxiayf3OB6pA7qkimh+QtDWVHRQ0p5NWpandK
ZcuiUjmfNA4PoAMIsAsUgS8nXsPUOf5Vri43fmwcMp1cUtDhaUmXEw==
=AcB9
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-02 [SCEA] [expires: 2018-12-12]
F5A63FD3EB26FB8DBB02BB03E5F01E2AD1082291
uid S (a) <a@a.q>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQT1pj/T6yb7jbsCuwPl8B4q0QgikQUCWzoqSwIdAAAKCRDl8B4q
0QgikWk1BADMOFTB+EA++KRJ2fykue5uPiHROp+wOkw6LyarVOdAo+imzl4PxKkE
RA/BD7G8gEWqk9lcEb/XZ+QGmnvmrQbyCr1kDrDVA86c9CIce/TDBif+XLsazIhR
FTtsvetBt6bOfW/wIUrBaBnMzCrlDaeDXEMcq1Geve3enQPOtOxACw==
=JVvM
-----END PGP PUBLIC KEY BLOCK-----
This is a revocation certificate for the OpenPGP key:
pub rsa1024 2018-07-02 [SCEA] [expires: 2020-12-12]
FD3F97FF3BA125B81A1E21CE154F8818EF4ACF2B
uid Mr. Shashank Kumar (My first key pair) <shashankkumar@gmail.com>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
to retract such a revocation certificate once it has been published.
Use it to revoke this key in case of a compromise or loss of
the secret key. However, if the secret key is still accessible,
it is better to generate a new revocation certificate and give
a reason for the revocation. For details see the description of
of the gpg command "--generate-revocation" in the GnuPG manual.
To avoid an accidental use of this file, a colon has been inserted
before the 5 dashes below. Remove this colon with a text editor
before importing and publishing this revocation certificate.
:-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iLYEIAEIACAWIQT9P5f/O6EluBoeIc4VT4gY70rPKwUCWzowbQIdAAAKCRAVT4gY
70rPK8UuA/wNEU6qIKBHs4hyDmlyN7qXFM+Ld0kIcT3Tb+7ZD5oei5qrgB1zWo1d
o44z5WHvCSussbTk+PlXje8PqhONwhycU+8sSLOLR8BCQhuDLKVWtlQLADawnPtK
TGacIqKceFZPIpZIqIr4huV/VU/CE9aBnWlh7czN+/nslo1UMhAWFg==
=9fKN
-----END PGP PUBLIC KEY BLOCK-----
......@@ -10,10 +10,7 @@ from kivy.uix.screenmanager import Screen
from modules.signin.services import sign_in_user
from modules.signin.exceptions import SignInError
from modules.signin.validations import (
validate_email,
validate_password
)
from modules.signin.validations import validate_email, validate_password
Builder.load_file('./ui/signin.kv')
......@@ -24,23 +21,6 @@ class SignIn(BoxLayout, Screen):
Declaration of SignIn Screen Class
'''
def __init__(self, **kwargs):
'''
Creating instance of vaidation class
Creating instance of updateBD class
'''
super().__init__(**kwargs)
def on_touch_down(self, touch):
'''
on_touch_down is triggered when user clicks the application anywhere
overiding this function here to perform actions on selection of menu items
'''
if self.ids['signup_info'].collide_point(*touch.pos):
self.manager.transition.direction = 'up'
self.manager.current = 'signup'
return super().on_touch_down(touch)
def prompt_error_message(self, label, error_text):
'''
Displays error message on the UI on the respective label widget
......
......@@ -3,7 +3,6 @@ Class for SignUp Screen
'''
import logging
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.lang import Builder
from kivy.clock import Clock
......@@ -26,6 +25,7 @@ class SignUp(BoxLayout, Screen):
'''
Declaration of SignUp Screen Class
'''
def prompt_error_message(self, label, error_text):
'''
Displays error message on the UI on the respective label widget
......@@ -119,8 +119,6 @@ class SignUp(BoxLayout, Screen):
language=language,
timezone=timezone
)
self.manager.transition.direction = 'left'
self.manager.current = 'dashboard'
app_object.switch_screen_to_dashboard()
except SignUpError as error:
self.prompt_error_message(
......
import pytest
import sqlite3
from modules.signin.services import sign_in_user
from modules.signin.exceptions import SignInError
from settings import (
DATABASE_FILE,
USER_INFOMATION_TABLE,
get_db_connection
)
from modules.signin.utils import (
......@@ -27,38 +24,32 @@ def setup():
connection.commit()
def testing_setting_constants():
# checking application constants
assert DATABASE_FILE
assert USER_INFOMATION_TABLE
def test_sign_in():
# checking valid login
email = 'shanky@shanky.xyz'
password = 'mynewpass'
user_info = sign_in_user(
**{
'email': 'shanky@shanky.xyz',
'password': 'mynewpass',
}
email=email,
password=password
)
assert user_info
# checking invalid login for no account
email = 'shashankkumarkushwaha@gmail.com'
password = 'mynewpass'
with pytest.raises(SignInError):
sign_in_user(
**{
'email': 'shashankkumarkushwaha@gmail.com',
'password': 'mynewpass',
}
email=email,
password=password
)
# checking invalid login for incorrect password
email = 'shanky@shanky.xyz'
password = 'myoldpass'
with pytest.raises(SignInError):
sign_in_user(
**{
'email': 'shanky@shanky.xyz',
'password': 'myoldpass',
}
email=email,
password=password
)
......
import pytest
import sqlite3
import os
from modules.signin.utils import clean_email
from modules.signin.utils import clean_email, hash_password
def test_clean_email():
# checking strip operation on email
......
......@@ -19,6 +19,7 @@ BoxLayout
SignUp
Screen
name: 'signin'
SignIn
<BigLabel@Label>
text_size: self.size
......
<SignIn>:
BoxLayout:
size_hint: 0.35, 1
orientation: 'vertical'
Label:
<SignIn>
orientation: 'vertical'
canvas.before:
Color:
rgba: 0.114, 0.306, 0.537, 1
Rectangle:
pos: self.pos
size: self.size
Label
size_hint: 1, 0.16
text: 'Welcome Back'
font_name: 'ui/assets/fonts/VarelaRound-Regular.ttf'
font_size: dp(30)
BoxLayout
size_hint: 1, 0.5
FloatLayout
size_hint: 0.20, 1
BoxLayout
size_hint: 0.5, 1
id: user_info_screen
orientation: 'vertical'
SignInLabel
text: 'Email'
id: email_label
SignInBoxLayout
SignInTextInput
id: user_email
SignInLabel
text: 'Password'
id: password_label
SignInBoxLayout
SignInTextInput
password: True
id: password
FloatLayout
size_hint: 0.30, 1
BoxLayout
size_hint: 1, 0.16
id: submit_info
FloatLayout
Button
text_size: self.size
size: self.texture_size
text: 'New'
halign: 'right'
valign: 'bottom'
font_name: 'ui/assets/fonts/Anton-Regular.ttf'
font_size: 50
padding_x: 10
Label:
text_size: self.size
size: self.texture_size
text: 'Contributor'
halign: 'right'
valign: 'middle'
font_name: 'ui/assets/fonts/Anton-Regular.ttf'
font_size: 50
padding_x: 10
Label:
text_size: self.size
size: self.texture_size
text: 'Wizard'
halign: 'right'
valign: 'top'
font_name: 'ui/assets/fonts/Anton-Regular.ttf'
font_size: 50
padding_x: 10
BoxLayout:
size_hint: 0.65, 1
orientation: 'vertical'
canvas.before:
Color:
rgba: 0.114, 0.306, 0.537, 1
Rectangle:
pos: self.pos
size: self.size
Label:
size_hint: 1, 0.16
text: 'Welcome Back'
size_hint: 0.7, 0.6
text: 'Sign In'
background_normal: ''
background_color: 0, 0, 0, 1
font_name: 'ui/assets/fonts/VarelaRound-Regular.ttf'
font_size: 20
id: sign_in_top_label
BoxLayout:
size_hint: 1, 0.5
FloatLayout:
size_hint: 0.20, 1
BoxLayout:
size_hint: 0.5, 1
id: user_info_screen
orientation: 'vertical'
Label:
text_size: self.size
size: self.texture_size
text: 'Email'
font_name: 'ui/assets/fonts/VarelaRound-Regular.ttf'
font_size: 20
halign: 'right'
id: email_label
BoxLayout:
size_hint: 1, 0.5
padding: 20, 0, 0, 0
TextInput:
multiline: False
font_name: 'ui/assets/fonts/VarelaRound-Regular.ttf'
font_size: 18
halign: 'right'
id: user_email
Label:
text_size: self.size