mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-06 16:07:42 +02:00
Merge pull request #2141 from vector-im/riot_2140
BF: Registration: email or phone number is no more skippable
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
Changes in 0.7.9 (2018-12-)
|
||||
===============================================
|
||||
|
||||
Improvements:
|
||||
* Upgrade MatrixKit version (v0.9.2).
|
||||
|
||||
Bug fix:
|
||||
* Registration: email or phone number is no more skippable (#2140).
|
||||
|
||||
Changes in 0.7.8 (2018-12-12)
|
||||
===============================================
|
||||
|
||||
|
||||
@@ -965,21 +965,10 @@
|
||||
// Check whether an account may be created without third-party identifiers.
|
||||
for (MXLoginFlow *loginFlow in currentSession.flows)
|
||||
{
|
||||
if ([loginFlow.stages indexOfObject:kMXLoginFlowTypeDummy] != NSNotFound || [loginFlow.type isEqualToString:kMXLoginFlowTypeDummy])
|
||||
if ([loginFlow.stages indexOfObject:kMXLoginFlowTypeEmailIdentity] == NSNotFound
|
||||
&& [loginFlow.stages indexOfObject:kMXLoginFlowTypeEmailCode] == NSNotFound)
|
||||
{
|
||||
// The dummy flow is supported, the 3pid are then optional.
|
||||
return NO;
|
||||
}
|
||||
|
||||
if ((loginFlow.stages.count == 1 && [loginFlow.stages[0] isEqualToString:kMXLoginFlowTypeRecaptcha]) || [loginFlow.type isEqualToString:kMXLoginFlowTypeRecaptcha])
|
||||
{
|
||||
// The recaptcha flow is supported alone, the 3pids are then optional.
|
||||
return NO;
|
||||
}
|
||||
|
||||
if ((loginFlow.stages.count == 1 && [loginFlow.stages[0] isEqualToString:kMXLoginFlowTypePassword]) || [loginFlow.type isEqualToString:kMXLoginFlowTypePassword])
|
||||
{
|
||||
// The password flow is supported alone, the 3pids are then optional.
|
||||
// There is a flow with no 3pids
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user