Commit 6d4dbe57 authored by Niklas Fix's avatar Niklas Fix 🎓

allow all email addresses for DEBUG

parent 6333d227
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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment