Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Akamu
Game Client Android
Commits
6d4dbe57
Commit
6d4dbe57
authored
Oct 31, 2020
by
Niklas Fix
🎓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow all email addresses for DEBUG
parent
6333d227
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/src/main/java/de/akamu/tudarmstadt/features/signup/email/EmailPresenter.kt
...akamu/tudarmstadt/features/signup/email/EmailPresenter.kt
+4
-1
No files found.
app/src/main/java/de/akamu/tudarmstadt/features/signup/email/EmailPresenter.kt
View file @
6d4dbe57
package
de.akamu.tudarmstadt.features.signup.email
import
com.stepstone.stepper.VerificationError
import
de.akamu.tudarmstadt.BuildConfig
class
EmailPresenter
(
var
view
:
EmailContract
.
View
?)
:
EmailContract
.
Presenter
{
...
...
@@ -9,7 +10,9 @@ class EmailPresenter(var view: EmailContract.View?) : EmailContract.Presenter {
}
override
fun
checkEmail
(
email
:
String
)
{
if
(
email
.
endsWith
(
"@stud.tu-darmstadt.de"
))
{
if
(
BuildConfig
.
DEBUG
)
{
view
?.
showEmailValid
()
}
else
if
(
email
.
endsWith
(
"@stud.tu-darmstadt.de"
))
{
view
?.
showEmailValid
()
}
else
{
view
?.
showEmailNotValid
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment